Commit c863ec18 authored by Krasimir Angelov's avatar Krasimir Angelov

Wrap string arguments in Arel.sql to silence a warning

In `queue_background_migration_jobs_by_range_at_intervals` migration
helper.
parent e526ee6e
...@@ -1018,7 +1018,7 @@ into similar problems in the future (e.g. when new tables are created). ...@@ -1018,7 +1018,7 @@ into similar problems in the future (e.g. when new tables are created).
end end
model_class.each_batch(of: batch_size) do |relation, index| 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 # `BackgroundMigrationWorker.bulk_perform_in` schedules all jobs for
# the same time, which is not helpful in most cases where we wish to # 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