A procedure has a default groupe instructeur
This commit is contained in:
parent
f296318072
commit
115d91387c
4 changed files with 31 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
namespace :after_party do
|
||||
desc 'Deployment task: create_default_groupe_instructeur'
|
||||
task create_default_groupe_instructeur: :environment do
|
||||
Procedure.find_each do |procedure|
|
||||
procedure.groupe_instructeurs.create(label: GroupeInstructeur::DEFAULT_LABEL)
|
||||
end
|
||||
|
||||
# Update task as completed. If you remove the line below, the task will
|
||||
# run with every deploy (or every time you call after_party:run).
|
||||
AfterParty::TaskRecord.create version: '20190819142551'
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue