20170214110202_create_reports.rb 398 B

12345678910111213
  1. class CreateReports < ActiveRecord::Migration[5.0]
  2. def change
  3. create_table :reports do |t|
  4. t.integer :account_id, null: false
  5. t.integer :target_account_id, null: false
  6. t.integer :status_ids, array: true, null: false, default: []
  7. t.text :comment, null: false, default: ''
  8. t.boolean :action_taken, null: false, default: false
  9. t.timestamps
  10. end
  11. end
  12. end