summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration/backfill_project_feature_package_registry_access_level.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/background_migration/backfill_project_feature_package_registry_access_level.rb')
-rw-r--r--lib/gitlab/background_migration/backfill_project_feature_package_registry_access_level.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/backfill_project_feature_package_registry_access_level.rb b/lib/gitlab/background_migration/backfill_project_feature_package_registry_access_level.rb
index ce4c4a28b37..6520cd63711 100644
--- a/lib/gitlab/background_migration/backfill_project_feature_package_registry_access_level.rb
+++ b/lib/gitlab/background_migration/backfill_project_feature_package_registry_access_level.rb
@@ -17,8 +17,10 @@ module Gitlab
self.table_name = 'project_features'
end
+ operation_name :update_all
+
def perform
- each_sub_batch(operation_name: :update_all) do |sub_batch|
+ each_sub_batch do |sub_batch|
ProjectFeature.connection.execute(
<<~SQL
UPDATE project_features pf