about summary refs log tree commit diff
path: root/db/migrate/20180402031200_add_assigned_account_id_to_reports.rb
blob: 27cbd6c2a12f5ebe92bca244870953e740f780aa (plain) (blame)
1
2
3
4
5
class AddAssignedAccountIdToReports < ActiveRecord::Migration[5.2]
  def change
    safety_assured { add_reference :reports, :assigned_account, null: true, default: nil, foreign_key: { on_delete: :nullify, to_table: :accounts }, index: false }
  end
end