feat(procedure_revision): add ineligibilite columns

This commit is contained in:
mfo 2024-06-05 17:02:59 +02:00
parent 080a818164
commit 810d272be2
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
4 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,5 @@
class AddTransitionsRulesToProcedureRevisions < ActiveRecord::Migration[7.0]
def change
add_column :procedure_revisions, :ineligibilite_rules, :jsonb
end
end

View file

@ -0,0 +1,5 @@
class AddDossierIneligbleMessageToProcedureRevisions < ActiveRecord::Migration[7.0]
def change
add_column :procedure_revisions, :ineligibilite_message, :text
end
end

View file

@ -0,0 +1,5 @@
class AddEligibiliteDossiersEnabledToProcedureRevisions < ActiveRecord::Migration[7.0]
def change
add_column :procedure_revisions, :ineligibilite_enabled, :boolean, default: false, null: false
end
end

View file

@ -863,6 +863,9 @@ ActiveRecord::Schema[7.0].define(version: 2024_05_27_090508) do
create_table "procedure_revisions", force: :cascade do |t|
t.datetime "created_at", precision: nil, null: false
t.bigint "dossier_submitted_message_id"
t.boolean "ineligibilite_enabled", default: false, null: false
t.text "ineligibilite_message"
t.jsonb "ineligibilite_rules"
t.bigint "procedure_id", null: false
t.datetime "published_at", precision: nil
t.datetime "updated_at", precision: nil, null: false