about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-01-27 18:13:41 +0100
committerGitHub <noreply@github.com>2022-01-27 18:13:41 +0100
commit14c69a535bcf5c96459a802093463e0bd1a8ef66 (patch)
treeb016d82cc7d6c0ce4c36b2260b8edc1a36c3eeaa
parent4942a7ce8681dbe0abbd788245eca96c55bcda08 (diff)
Fix some old database migrations (#17379)
-rw-r--r--db/migrate/20180528141303_fix_accounts_unique_index.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20180528141303_fix_accounts_unique_index.rb b/db/migrate/20180528141303_fix_accounts_unique_index.rb
index 02813f363..3e33e2cac 100644
--- a/db/migrate/20180528141303_fix_accounts_unique_index.rb
+++ b/db/migrate/20180528141303_fix_accounts_unique_index.rb
@@ -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