Browse Source

Fix some old database migrations (#17379)

closed-social-glitch-2
Claire 2 years ago
committed by GitHub
parent
commit
14c69a535b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      db/migrate/20180528141303_fix_accounts_unique_index.rb

+ 15
- 0
db/migrate/20180528141303_fix_accounts_unique_index.rb 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

Loading…
Cancel
Save