about summary refs log tree commit diff
path: root/db/migrate/20220115125126_add_report_id_to_account_warnings.rb
blob: a1c20c99ef82157b0ca047f0bb7e38873cef9ab2 (plain) (blame)
1
2
3
4
5
6
class AddReportIdToAccountWarnings < ActiveRecord::Migration[6.1]
  def change
    safety_assured { add_reference :account_warnings, :report, foreign_key: { on_delete: :cascade }, index: false }
    add_column :account_warnings, :status_ids, :string, array: true
  end
end