summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration/populate_any_approval_rule_for_projects.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-14 09:08:19 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-14 09:08:19 +0000
commit02ab65d49fc94be7c91e511899762236c122977d (patch)
tree4d4bf4ec54a95a0d73e039fa1410ea841156ffb2 /lib/gitlab/background_migration/populate_any_approval_rule_for_projects.rb
parent4411353300cf8219d2b899785bc5103c549ba8cf (diff)
downloadgitlab-ce-02ab65d49fc94be7c91e511899762236c122977d.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/background_migration/populate_any_approval_rule_for_projects.rb')
-rw-r--r--lib/gitlab/background_migration/populate_any_approval_rule_for_projects.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/gitlab/background_migration/populate_any_approval_rule_for_projects.rb b/lib/gitlab/background_migration/populate_any_approval_rule_for_projects.rb
new file mode 100644
index 00000000000..2243c7531c0
--- /dev/null
+++ b/lib/gitlab/background_migration/populate_any_approval_rule_for_projects.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module BackgroundMigration
+ # This background migration creates any approver rule records according
+ # to the given project IDs range. A _single_ INSERT is issued for the given range.
+ class PopulateAnyApprovalRuleForProjects
+ def perform(from_id, to_id)
+ end
+ end
+ end
+end
+
+Gitlab::BackgroundMigration::PopulateAnyApprovalRuleForProjects.prepend_if_ee('EE::Gitlab::BackgroundMigration::PopulateAnyApprovalRuleForProjects')