1
0

20170214110202_create_reports.rb 429 B

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