refactor(repetition): add row_id to champs
This commit is contained in:
parent
5a7b2f76ee
commit
dfe65136be
44 changed files with 106 additions and 7 deletions
7
app/jobs/migrations/backfill_row_id_job.rb
Normal file
7
app/jobs/migrations/backfill_row_id_job.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue