2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-04-07 10:18:12 +02:00
|
|
|
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
|