Fix some old database migrations (#17379)

lolsob-rspec
Claire 2022-01-27 18:13:41 +01:00 committed by GitHub
parent 5801e6d7ef
commit 1d846bd6fb
1 changed files with 15 additions and 0 deletions

View 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