summaryrefslogtreecommitdiff
path: root/lib/gitlab/import/database_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/import/database_helpers.rb')
-rw-r--r--lib/gitlab/import/database_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/import/database_helpers.rb b/lib/gitlab/import/database_helpers.rb
index f8ea7a7adcd..e73c3afe9bd 100644
--- a/lib/gitlab/import/database_helpers.rb
+++ b/lib/gitlab/import/database_helpers.rb
@@ -11,7 +11,7 @@ module Gitlab
# We use bulk_insert here so we can bypass any queries executed by
# callbacks or validation rules, as doing this wouldn't scale when
# importing very large projects.
- result = Gitlab::Database # rubocop:disable Gitlab/BulkInsert
+ result = Gitlab::Database.main # rubocop:disable Gitlab/BulkInsert
.bulk_insert(relation.table_name, [attributes], return_ids: true)
result.first