fix(data): ensure to populate closed column in after_party migration

This commit is contained in:
Martin 2022-06-21 17:54:13 +02:00
parent 4275096349
commit a1623a1213
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,8 @@
class BackfillAddColumnClosedToGroupeInstructeurs < ActiveRecord::Migration[6.1]
def up
GroupeInstructeur.in_batches do |relation|
relation.update_all closed: false
sleep(0.01)
end
end
end