summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration/move_container_registry_enabled_to_project_feature.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/background_migration/move_container_registry_enabled_to_project_feature.rb')
-rw-r--r--lib/gitlab/background_migration/move_container_registry_enabled_to_project_feature.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/move_container_registry_enabled_to_project_feature.rb b/lib/gitlab/background_migration/move_container_registry_enabled_to_project_feature.rb
index c01545e5dca..06422ed282f 100644
--- a/lib/gitlab/background_migration/move_container_registry_enabled_to_project_feature.rb
+++ b/lib/gitlab/background_migration/move_container_registry_enabled_to_project_feature.rb
@@ -22,7 +22,7 @@ module Gitlab
private
def process_batch(from_id, to_id)
- ActiveRecord::Base.connection.execute(update_sql(from_id, to_id))
+ ApplicationRecord.connection.execute(update_sql(from_id, to_id))
logger.info(message: "#{self.class}: Copied container_registry_enabled values for projects with IDs between #{from_id}..#{to_id}")
end