]> cat aescling's git repositories - mastodon.git/commitdiff
Fix old migration script depending on the StreamEntry model (#11278)
authorThibG <thib@sitedethib.com>
Wed, 10 Jul 2019 15:09:10 +0000 (17:09 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 10 Jul 2019 15:09:10 +0000 (17:09 +0200)
db/migrate/20180528141303_fix_accounts_unique_index.rb

index bd4e158b7ecccc39892957ceab8b869b452d41b0..bbbf28d8175ddf9b9f720f91a74f3ca80e5deb4d 100644 (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