Commit ee2ae796 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Change constant from class to module

parent 8c1ec51f
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
module EE module EE
module Gitlab module Gitlab
module BackgroundMigration module BackgroundMigration
class PopulateResolvedOnDefaultBranchColumn module PopulateResolvedOnDefaultBranchColumn
def perform(project_ids) def perform(*project_ids)
project_ids.each { |project_id| PopulateResolvedOnDefaultBranchColumnForProject.perform(project_id) } project_ids.flatten.each { |project_id| PopulateResolvedOnDefaultBranchColumnForProject.perform(project_id) }
end end
module Routable module Routable
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe EE::Gitlab::BackgroundMigration::PopulateResolvedOnDefaultBranchColumn do RSpec.describe ::Gitlab::BackgroundMigration::PopulateResolvedOnDefaultBranchColumn do
let(:users) { table(:users) } let(:users) { table(:users) }
let(:namespaces) { table(:namespaces) } let(:namespaces) { table(:namespaces) }
let(:projects) { table(:projects) } let(:projects) { table(:projects) }
......
...@@ -9,4 +9,4 @@ module Gitlab ...@@ -9,4 +9,4 @@ module Gitlab
end end
end end
Gitlab::BackgroundMigration::UpdateVulnerabilityConfidence.prepend_if_ee('EE::Gitlab::BackgroundMigration::PopulateResolvedOnDefaultBranchColumn') Gitlab::BackgroundMigration::PopulateResolvedOnDefaultBranchColumn.prepend_if_ee('EE::Gitlab::BackgroundMigration::PopulateResolvedOnDefaultBranchColumn')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment