feat(db): add routing column to groupe_instructeurs

This commit is contained in:
Eric Leroy-Terquem 2023-02-28 08:39:37 +01:00
parent f6738be454
commit 3ef6adccd6
3 changed files with 7 additions and 0 deletions

View file

@ -5,6 +5,7 @@
# id :bigint not null, primary key
# closed :boolean default(FALSE)
# label :text not null
# routing_rule :jsonb
# created_at :datetime not null
# updated_at :datetime not null
# procedure_id :bigint not null

View file

@ -0,0 +1,5 @@
class AddRoutingColumnToGroupeInstructeur < ActiveRecord::Migration[6.1]
def change
add_column :groupe_instructeurs, :routing_rule, :jsonb
end
end

View file

@ -585,6 +585,7 @@ ActiveRecord::Schema.define(version: 2023_03_22_150907) do
t.datetime "created_at", null: false
t.text "label", null: false
t.bigint "procedure_id", null: false
t.jsonb "routing_rule"
t.datetime "updated_at", null: false
t.index ["closed", "procedure_id"], name: "index_groupe_instructeurs_on_closed_and_procedure_id"
t.index ["procedure_id", "label"], name: "index_groupe_instructeurs_on_procedure_id_and_label", unique: true