feat(GroupeInstructeurs.closed): add closed option to GroupeInstructeur in order to prevent usagers to submit dossier

This commit is contained in:
Martin 2022-06-20 16:14:27 +02:00
parent 511c646b46
commit ab4d4c83a8
9 changed files with 54 additions and 20 deletions

View file

@ -0,0 +1,5 @@
class AddColumnClosedToGroupeInstructeurs < ActiveRecord::Migration[6.1]
def change
add_column :groupe_instructeurs, :closed, :boolean, default: false
end
end

View file

@ -0,0 +1,7 @@
class AddIndexOnProcedureIdAndClosedToGroupeInstructeurs < ActiveRecord::Migration[6.1]
include Database::MigrationHelpers
disable_ddl_transaction!
def up
add_concurrent_index :groupe_instructeurs, [:closed, :procedure_id]
end
end