20171005102658_create_account_moderation_notes.rb 401 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class CreateAccountModerationNotes < ActiveRecord::Migration[5.2]
  3. def change
  4. create_table :account_moderation_notes do |t|
  5. t.text :content, null: false
  6. t.references :account
  7. t.references :target_account
  8. t.timestamps
  9. end
  10. safety_assured { add_foreign_key :account_moderation_notes, :accounts, column: :target_account_id }
  11. end
  12. end