From bb4a6e22ce68977d24bc5b3de1e9ae58c787e9df Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Thu, 25 May 2023 19:06:43 +0200 Subject: [PATCH] chore(schema): +procedures#sva_svr --- app/models/procedure.rb | 1 + config/initializers/inflections.rb | 2 ++ db/migrate/20230525130349_add_sva_svr_to_procedures.rb | 5 +++++ db/schema.rb | 1 + 4 files changed, 9 insertions(+) create mode 100644 db/migrate/20230525130349_add_sva_svr_to_procedures.rb diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 375c944b3..8e124a54c 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -47,6 +47,7 @@ # published_at :datetime # routing_criteria_name :text default("Votre ville") # routing_enabled :boolean +# sva_svr :jsonb not null # tags :text default([]), is an Array # unpublished_at :datetime # web_hook_url :string diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index 3e3a763be..850d1a9d5 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -15,6 +15,8 @@ ActiveSupport::Inflector.inflections(:en) do |inflect| inflect.acronym 'JSON' inflect.acronym 'RNA' inflect.acronym 'URL' + inflect.acronym 'SVA' + inflect.acronym 'SVR' inflect.irregular 'type_de_champ', 'types_de_champ' inflect.irregular 'type_de_champ_private', 'types_de_champ_private' inflect.irregular 'procedure_revision_type_de_champ', 'procedure_revision_types_de_champ' diff --git a/db/migrate/20230525130349_add_sva_svr_to_procedures.rb b/db/migrate/20230525130349_add_sva_svr_to_procedures.rb new file mode 100644 index 000000000..f3ad2a1db --- /dev/null +++ b/db/migrate/20230525130349_add_sva_svr_to_procedures.rb @@ -0,0 +1,5 @@ +class AddSVASVRToProcedures < ActiveRecord::Migration[7.0] + def change + add_column :procedures, :sva_svr, :jsonb, default: {}, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 07578f826..b26b51e1a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -762,6 +762,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_06_29_102031) do t.text "routing_criteria_name", default: "Votre ville" t.boolean "routing_enabled" t.bigint "service_id" + t.jsonb "sva_svr", default: {}, null: false t.text "tags", default: [], array: true t.datetime "test_started_at", precision: 6 t.datetime "unpublished_at", precision: 6