Populate the column
This commit is contained in:
parent
dd4ffb926c
commit
766d1ce51c
1 changed files with 10 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
||||||
|
namespace :after_party do
|
||||||
|
desc 'Deployment task: populate_user_instructeur_ids'
|
||||||
|
task populate_user_instructeur_ids: :environment do
|
||||||
|
Instructeur.find_each do |instructeur|
|
||||||
|
User.where(email: instructeur.email).update(instructeur_id: instructeur.id)
|
||||||
|
end
|
||||||
|
|
||||||
|
AfterParty::TaskRecord.create version: '20190808145006'
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue