From ba8d78bd9724bc20b81defef36b55d2242e5b04c Mon Sep 17 00:00:00 2001 From: Kara Diaby Date: Thu, 23 Mar 2023 17:13:57 +0100 Subject: [PATCH] migration --- ...0230322150907_add_allow_expert_messaging_to_procedures.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20230322150907_add_allow_expert_messaging_to_procedures.rb diff --git a/db/migrate/20230322150907_add_allow_expert_messaging_to_procedures.rb b/db/migrate/20230322150907_add_allow_expert_messaging_to_procedures.rb new file mode 100644 index 000000000..410b2926c --- /dev/null +++ b/db/migrate/20230322150907_add_allow_expert_messaging_to_procedures.rb @@ -0,0 +1,5 @@ +class AddAllowExpertMessagingToProcedures < ActiveRecord::Migration[6.1] + def change + add_column :procedures, :allow_expert_messaging, :boolean, default: true, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index f01212cd2..c9e434122 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.define(version: 2023_03_03_094613) do +ActiveRecord::Schema.define(version: 2023_03_22_150907) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" @@ -692,6 +692,7 @@ ActiveRecord::Schema.define(version: 2023_03_03_094613) do create_table "procedures", id: :serial, force: :cascade do |t| t.string "aasm_state", default: "brouillon" + t.boolean "allow_expert_messaging", default: true, null: false t.boolean "allow_expert_review", default: true, null: false t.string "api_entreprise_token" t.text "api_particulier_scopes", default: [], array: true