Commit b16725b1 authored by Andreas Brandl's avatar Andreas Brandl

Merge branch...

Merge branch 'fix-deprecation-in-queue_background_migration_jobs_by_range_at_intervals' into 'master'

Wrap arguments in Arel.sql in queue_background_migration_jobs_by_range_at_intervals

See merge request gitlab-org/gitlab!18294
parents 286d6914 c863ec18
......@@ -1018,7 +1018,7 @@ into similar problems in the future (e.g. when new tables are created).
end
model_class.each_batch(of: batch_size) do |relation, index|
start_id, end_id = relation.pluck('MIN(id), MAX(id)').first
start_id, end_id = relation.pluck(Arel.sql('MIN(id), MAX(id)')).first
# `BackgroundMigrationWorker.bulk_perform_in` schedules all jobs for
# the same time, which is not helpful in most cases where we wish to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment