demarches-normaliennes/app/jobs/migrations/backfill_row_id_job.rb
2024-08-22 09:26:48 +02:00

9 lines
215 B
Ruby

# frozen_string_literal: true
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