diff options
author | ThibG <thib@sitedethib.com> | 2019-07-10 17:09:10 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-10 17:09:10 +0200 |
commit | 27ad4c1501eb391b56e89bdab52624b953fde786 (patch) | |
tree | 90fd4fde5f8f010f47288891924d830e6113582f /db/migrate | |
parent | 6172263a63de2e4b2a2aeb9cb30b387622fdd3d6 (diff) |
Fix old migration script depending on the StreamEntry model (#11278)
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20180528141303_fix_accounts_unique_index.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20180528141303_fix_accounts_unique_index.rb b/db/migrate/20180528141303_fix_accounts_unique_index.rb index bd4e158b7..bbbf28d81 100644 --- a/db/migrate/20180528141303_fix_accounts_unique_index.rb +++ b/db/migrate/20180528141303_fix_accounts_unique_index.rb @@ -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 |