refactor(repetition): add row_id to champs

This commit is contained in:
Paul Chavard 2022-12-16 12:39:51 +01:00
parent 5a7b2f76ee
commit dfe65136be
44 changed files with 106 additions and 7 deletions

View file

@ -0,0 +1,7 @@
class Migrations::BackfillRowIdJob < ApplicationJob
def perform(batch)
batch.each do |(row_id, champ_ids)|
Champ.where(id: champ_ids).update_all(row_id:)
end
end
end