demarches-normaliennes/db/migrate/20220407081538_backfill_export_status.rb
2024-08-22 09:26:48 +02:00

12 lines
243 B
Ruby

# frozen_string_literal: true
class BackfillExportStatus < ActiveRecord::Migration[6.1]
disable_ddl_transaction!
def change
Export.in_batches do |relation|
relation.update_all statut: "tous"
sleep(0.01)
end
end
end