A procedure has a default groupe instructeur

This commit is contained in:
simon lehericey 2019-08-27 15:28:02 +02:00
parent f296318072
commit 115d91387c
4 changed files with 31 additions and 0 deletions

View file

@ -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