diff options
author | nullkal <nullkal@nil.nu> | 2017-10-10 20:12:17 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-10 13:12:17 +0200 |
commit | 6c54d2e5837de941457371e9afffd05606d88180 (patch) | |
tree | 9f1b3d466755ef356ebf1bb1c3a943ba28fce75a /app/models/account_moderation_note.rb | |
parent | 96c942e8abf7bf04e6c3dbcc48cbec07138c486c (diff) |
foreign_key, non-nullable, dependent: destroy in account_moderation_notes (#5294)
* 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
Diffstat (limited to 'app/models/account_moderation_note.rb')
-rw-r--r-- | app/models/account_moderation_note.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/account_moderation_note.rb b/app/models/account_moderation_note.rb index be52d10b6..3ac9b1ac1 100644 --- a/app/models/account_moderation_note.rb +++ b/app/models/account_moderation_note.rb @@ -1,13 +1,12 @@ # frozen_string_literal: true - # == Schema Information # # Table name: account_moderation_notes # # id :integer not null, primary key # content :text not null -# account_id :integer -# target_account_id :integer +# account_id :integer not null +# target_account_id :integer not null # created_at :datetime not null # updated_at :datetime not null # |