]> cat aescling's git repositories - mastodon.git/commitdiff
Fix some old database migrations (#17379)
authorClaire <claire.github-309c@sitedethib.com>
Thu, 27 Jan 2022 17:13:41 +0000 (18:13 +0100)
committerGitHub <noreply@github.com>
Thu, 27 Jan 2022 17:13:41 +0000 (18:13 +0100)
db/migrate/20180528141303_fix_accounts_unique_index.rb

index 02813f363c78caf724cbcbd62a7c87d521256f13..3e33e2cac406fabef8fe5915978624f9968deeb9 100644 (file)
@@ -17,6 +17,21 @@ class FixAccountsUniqueIndex < ActiveRecord::Migration[5.2]
     belongs_to :account, inverse_of: :stream_entries
   end
 
+  class Status < ApplicationRecord
+    # Dummy class, to make migration possible across version changes
+    belongs_to :account
+  end
+
+  class Mention < ApplicationRecord
+    # Dummy class, to make migration possible across version changes
+    belongs_to :account
+  end
+
+  class StatusPin < ApplicationRecord
+    # Dummy class, to make migration possible across version changes
+    belongs_to :account
+  end
+
   disable_ddl_transaction!
 
   def up