diff options
author | nullkal <nullkal@nil.nu> | 2017-10-08 03:26:43 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-07 20:26:43 +0200 |
commit | 633426b2616e8559acfa76f4294a51afcf434fc2 (patch) | |
tree | 38759fbbd11bb3b40bc29e1a0f8ce048d15c7ce3 /db/migrate | |
parent | f486ef2666dacbcb6fcd26e371bb5e945369dcfe (diff) |
Add moderation note (#5240)
* Add moderation note * Add frozen_string_literal * Make rspec pass
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20171005102658_create_account_moderation_notes.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20171005102658_create_account_moderation_notes.rb b/db/migrate/20171005102658_create_account_moderation_notes.rb new file mode 100644 index 000000000..d1802b5b3 --- /dev/null +++ b/db/migrate/20171005102658_create_account_moderation_notes.rb @@ -0,0 +1,12 @@ +class CreateAccountModerationNotes < ActiveRecord::Migration[5.1] + def change + create_table :account_moderation_notes do |t| + t.text :content, null: false + t.references :account + t.references :target_account + + t.timestamps + end + add_foreign_key :account_moderation_notes, :accounts, column: :target_account_id + end +end |