From 541a36abbfafdc313e283a924a706077a91287f1 Mon Sep 17 00:00:00 2001 From: kara Diaby Date: Fri, 16 Apr 2021 11:11:00 +0200 Subject: [PATCH] Add boolean to procedures table --- app/models/procedure.rb | 1 + ...xperts_require_administrateur_invitation_to_procedures.rb | 5 +++++ db/schema.rb | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20210416074049_add_experts_require_administrateur_invitation_to_procedures.rb diff --git a/app/models/procedure.rb b/app/models/procedure.rb index 55129cf3d..40c83c1e6 100644 --- a/app/models/procedure.rb +++ b/app/models/procedure.rb @@ -20,6 +20,7 @@ # durees_conservation_required :boolean default(TRUE) # euro_flag :boolean default(FALSE) # for_individual :boolean default(FALSE) +# experts_require_administrateur_invitation :boolean default(FALSE) # hidden_at :datetime # juridique_required :boolean default(TRUE) # libelle :string diff --git a/db/migrate/20210416074049_add_experts_require_administrateur_invitation_to_procedures.rb b/db/migrate/20210416074049_add_experts_require_administrateur_invitation_to_procedures.rb new file mode 100644 index 000000000..5e90d2e18 --- /dev/null +++ b/db/migrate/20210416074049_add_experts_require_administrateur_invitation_to_procedures.rb @@ -0,0 +1,5 @@ +class AddExpertsRequireAdministrateurInvitationToProcedures < ActiveRecord::Migration[6.1] + def change + add_column :procedures, :experts_require_administrateur_invitation, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 398100610..d74b65981 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: 2021_04_12_092710) do +ActiveRecord::Schema.define(version: 2021_04_16_074049) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -551,6 +551,7 @@ ActiveRecord::Schema.define(version: 2021_04_12_092710) do t.bigint "draft_revision_id" t.bigint "published_revision_id" t.boolean "allow_expert_review", default: true, null: false + t.boolean "experts_require_administrateur_invitation", default: false t.index ["declarative_with_state"], name: "index_procedures_on_declarative_with_state" t.index ["draft_revision_id"], name: "index_procedures_on_draft_revision_id" t.index ["hidden_at"], name: "index_procedures_on_hidden_at"