20180402031200_add_assigned_account_id_to_reports.rb 285 B

1234567
  1. # frozen_string_literal: true
  2. class AddAssignedAccountIdToReports < ActiveRecord::Migration[5.2]
  3. def change
  4. safety_assured { add_reference :reports, :assigned_account, null: true, default: nil, foreign_key: { on_delete: :nullify, to_table: :accounts }, index: false }
  5. end
  6. end