diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-27 18:13:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 18:13:41 +0100 |
commit | 14c69a535bcf5c96459a802093463e0bd1a8ef66 (patch) | |
tree | b016d82cc7d6c0ce4c36b2260b8edc1a36c3eeaa | |
parent | 4942a7ce8681dbe0abbd788245eca96c55bcda08 (diff) |
Fix some old database migrations (#17379)
-rw-r--r-- | db/migrate/20180528141303_fix_accounts_unique_index.rb | 15 |
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 |