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
6 lines
255 B
Ruby
6 lines
255 B
Ruby
class ChangeAccountsNonnullableInAccountModerationNotes < ActiveRecord::Migration[5.1]
|
|
def change
|
|
change_column_null :account_moderation_notes, :account_id, false
|
|
change_column_null :account_moderation_notes, :target_account_id, false
|
|
end
|
|
end
|