[#1946] Add durees_conservation_required flag to procedures

This commit is contained in:
Frederic Merizen 2018-05-24 23:27:12 +02:00
parent 648483ac76
commit d3cfcaa8ac
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
class AddDureesConservationRequiredToProcedure < ActiveRecord::Migration[5.2]
def change
add_column :procedures, :durees_conservation_required, :boolean, default: true
end
end

View file

@ -483,6 +483,7 @@ ActiveRecord::Schema.define(version: 2018_06_01_084546) do
t.integer "duree_conservation_dossiers_hors_ds" t.integer "duree_conservation_dossiers_hors_ds"
t.string "cadre_juridique" t.string "cadre_juridique"
t.boolean "juridique_required", default: true t.boolean "juridique_required", default: true
t.boolean "durees_conservation_required", default: true
t.index ["hidden_at"], name: "index_procedures_on_hidden_at" t.index ["hidden_at"], name: "index_procedures_on_hidden_at"
t.index ["parent_procedure_id"], name: "index_procedures_on_parent_procedure_id" t.index ["parent_procedure_id"], name: "index_procedures_on_parent_procedure_id"
t.index ["service_id"], name: "index_procedures_on_service_id" t.index ["service_id"], name: "index_procedures_on_service_id"