mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-08-25 01:44:52 +00:00
* 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
155 B
Ruby
6 lines
155 B
Ruby
class AddForeignKeyToAccountModerationNotes < ActiveRecord::Migration[5.1]
|
|
def change
|
|
add_foreign_key :account_moderation_notes, :accounts
|
|
end
|
|
end
|