From a43c3fd19d2d0d672245bc993b575234960656b8 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 29 Jun 2023 12:57:57 +0200 Subject: [PATCH] feat(procedure): add lien_notice_error and lien_dpo_error --- app/models/procedure.rb | 2 ++ ...29102031_add_lien_notice_and_dpo_errors_to_procedures.rb | 6 ++++++ db/schema.rb | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20230629102031_add_lien_notice_and_dpo_errors_to_procedures.rb diff --git a/app/models/procedure.rb b/app/models/procedure.rb index f892b5c31..2baabf817 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -32,7 +32,9 @@ # juridique_required :boolean default(TRUE) # libelle :string # lien_dpo :string +# lien_dpo_error :text # lien_notice :string +# lien_notice_error :text # lien_site_web :string # max_duree_conservation_dossiers_dans_ds :integer default(12), not null # migrated_champ_routage :boolean diff --git a/db/migrate/20230629102031_add_lien_notice_and_dpo_errors_to_procedures.rb b/db/migrate/20230629102031_add_lien_notice_and_dpo_errors_to_procedures.rb new file mode 100644 index 000000000..9791fc2db --- /dev/null +++ b/db/migrate/20230629102031_add_lien_notice_and_dpo_errors_to_procedures.rb @@ -0,0 +1,6 @@ +class AddLienNoticeAndDpoErrorsToProcedures < ActiveRecord::Migration[7.0] + def change + add_column :procedures, :lien_notice_error, :text + add_column :procedures, :lien_dpo_error, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index a387e005c..07578f826 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2023_06_23_160831) do +ActiveRecord::Schema[7.0].define(version: 2023_06_29_102031) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" enable_extension "plpgsql" @@ -743,7 +743,9 @@ ActiveRecord::Schema[7.0].define(version: 2023_06_23_160831) do t.string "libelle" t.string "lien_demarche" t.string "lien_dpo" + t.text "lien_dpo_error" t.string "lien_notice" + t.text "lien_notice_error" t.string "lien_site_web" t.integer "max_duree_conservation_dossiers_dans_ds", default: 12, null: false t.boolean "migrated_champ_routage"