diff options
Diffstat (limited to 'lib/gitlab/background_migration/backfill_user_namespace.rb')
-rw-r--r-- | lib/gitlab/background_migration/backfill_user_namespace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/backfill_user_namespace.rb b/lib/gitlab/background_migration/backfill_user_namespace.rb index f55eaa3b14e..ab569e236fb 100644 --- a/lib/gitlab/background_migration/backfill_user_namespace.rb +++ b/lib/gitlab/background_migration/backfill_user_namespace.rb @@ -29,7 +29,7 @@ module Gitlab end def relation_scoped_to_range(source_table, source_key_column, start_id, stop_id) - define_batchable_model(source_table) + define_batchable_model(source_table, connection: connection) .where(source_key_column => start_id..stop_id) .where(type: nil) end |