Browse Source

Fix old migration script depending on the StreamEntry model (#11278)

closed-social-v3
ThibG 4 years ago
committed by Eugen Rochko
parent
commit
27ad4c1501
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      db/migrate/20180528141303_fix_accounts_unique_index.rb

+ 5
- 0
db/migrate/20180528141303_fix_accounts_unique_index.rb View File

@ -12,6 +12,11 @@ class FixAccountsUniqueIndex < ActiveRecord::Migration[5.2]
end
end
class StreamEntry < ApplicationRecord
# Dummy class, to make migration possible across version changes
belongs_to :account, inverse_of: :stream_entries
end
disable_ddl_transaction!
def up

Loading…
Cancel
Save