forked from asonix/mastodon
* Add foreign key constraint to column `account` in `account_moderation_notes` * Change account_id and target_account_id to non-nullable in account_moderation_notes * Add dependent: :destroy to account and target_account in account_moderation_notes
5 lines
155 B
Ruby
5 lines
155 B
Ruby
class AddForeignKeyToAccountModerationNotes < ActiveRecord::Migration[5.1]
|
|
def change
|
|
add_foreign_key :account_moderation_notes, :accounts
|
|
end
|
|
end
|