demarches-normaliennes/app/jobs/migrations/backfill_row_id_job.rb
2023-01-05 18:04:54 +01:00

7 lines
184 B
Ruby

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