feat(GroupeInstructeurs.closed): add closed option to GroupeInstructeur in order to prevent usagers to submit dossier
This commit is contained in:
parent
511c646b46
commit
ab4d4c83a8
9 changed files with 54 additions and 20 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddColumnClosedToGroupeInstructeurs < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :groupe_instructeurs, :closed, :boolean, default: false
|
||||
end
|
||||
end
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue