diff --git a/app/models/dossier.rb b/app/models/dossier.rb index 0b35008de..6ff46cce1 100644 --- a/app/models/dossier.rb +++ b/app/models/dossier.rb @@ -36,6 +36,8 @@ # processed_at :datetime # search_terms :string # state :string +# sva_svr_decision_on :date +# sva_svr_decision_triggered_at :datetime # termine_close_to_expiration_notice_sent_at :datetime # created_at :datetime # updated_at :datetime diff --git a/db/migrate/20230601080235_add_sva_svr_decision_on_to_dossiers.rb b/db/migrate/20230601080235_add_sva_svr_decision_on_to_dossiers.rb new file mode 100644 index 000000000..df0d98ce9 --- /dev/null +++ b/db/migrate/20230601080235_add_sva_svr_decision_on_to_dossiers.rb @@ -0,0 +1,6 @@ +class AddSVASVRDecisionOnToDossiers < ActiveRecord::Migration[7.0] + def change + add_column :dossiers, :sva_svr_decision_on, :date, default: nil + add_column :dossiers, :sva_svr_decision_triggered_at, :datetime, default: nil + end +end diff --git a/db/schema.rb b/db/schema.rb index b26b51e1a..657c387d9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -409,6 +409,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_06_29_102031) do t.string "state" t.datetime "termine_close_to_expiration_notice_sent_at", precision: 6 t.datetime "updated_at", precision: 6 + t.date "sva_svr_decision_on" + t.datetime "sva_svr_decision_triggered_at", precision: 6 t.integer "user_id" t.index ["archived"], name: "index_dossiers_on_archived" t.index ["batch_operation_id"], name: "index_dossiers_on_batch_operation_id"