2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-07-21 13:17:47 +02:00
|
|
|
class BackfillAssignTosManager < ActiveRecord::Migration[6.1]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def change
|
|
|
|
AssignTo.in_batches do |relation|
|
|
|
|
relation.update_all manager: false
|
|
|
|
sleep(0.01)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|