mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
![nullkal](/assets/img/avatar_default.png)
* 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
|