about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-07-10 17:09:10 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-07-10 17:09:10 +0200
commit27ad4c1501eb391b56e89bdab52624b953fde786 (patch)
tree90fd4fde5f8f010f47288891924d830e6113582f /db/migrate
parent6172263a63de2e4b2a2aeb9cb30b387622fdd3d6 (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.rb5
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