chore(schema): +procedures#piece_justificative_multiple

This commit is contained in:
Colin Darie 2022-11-07 18:08:38 +01:00
parent ed1c6ec515
commit 0014ce4b91
3 changed files with 11 additions and 0 deletions

View file

@ -34,6 +34,7 @@
# opendata :boolean default(TRUE)
# organisation :string
# path :string not null
# piece_justificative_multiple :boolean default(TRUE), not null
# procedure_expires_when_termine_enabled :boolean default(TRUE)
# published_at :datetime
# routing_criteria_name :text default("Votre ville")

View file

@ -0,0 +1,9 @@
class AddPieceJustificativeMultipleOnProcedures < ActiveRecord::Migration[6.1]
def change
safety_assured do
# Only new procedures will have multiple enabled by default
add_column :procedures, :piece_justificative_multiple, :boolean, default: false, null: false
change_column_default :procedures, :piece_justificative_multiple, from: false, to: true
end
end
end

View file

@ -664,6 +664,7 @@ ActiveRecord::Schema.define(version: 2022_11_30_113745) do
t.string "organisation"
t.bigint "parent_procedure_id"
t.string "path", null: false
t.boolean "piece_justificative_multiple", default: true, null: false
t.boolean "procedure_expires_when_termine_enabled", default: true
t.datetime "published_at"
t.bigint "published_revision_id"