diff options
Diffstat (limited to 'db/migrate/20220115125126_add_report_id_to_account_warnings.rb')
-rw-r--r-- | db/migrate/20220115125126_add_report_id_to_account_warnings.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20220115125126_add_report_id_to_account_warnings.rb b/db/migrate/20220115125126_add_report_id_to_account_warnings.rb new file mode 100644 index 000000000..a1c20c99e --- /dev/null +++ b/db/migrate/20220115125126_add_report_id_to_account_warnings.rb @@ -0,0 +1,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 |