parent
3ee5e3352c
commit
3da6e4d57f
@ -1,18 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class FixForeignKeysStatusReactions < ActiveRecord::Migration[6.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
# Fixes an oversight in a previous version of the CreateStatusReactions migration
|
||||
remove_foreign_key :status_reactions, :accounts
|
||||
add_foreign_key :status_reactions, :accounts, on_delete: :cascade, validate: false
|
||||
validate_foreign_key :status_reactions, :accounts
|
||||
remove_foreign_key :status_reactions, :statuses
|
||||
add_foreign_key :status_reactions, :statuses, on_delete: :cascade, validate: false
|
||||
validate_foreign_key :status_reactions, :statuses
|
||||
remove_foreign_key :status_reactions, :custom_emojis
|
||||
add_foreign_key :status_reactions, :custom_emojis, on_delete: :cascade, validate: false
|
||||
validate_foreign_key :status_reactions, :custom_emojis
|
||||
end
|
||||
end
|
Loading…
Reference in new issue