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

Change constant from class to module

parent 8c1ec51f
......@@ -3,9 +3,9 @@
module EE
module Gitlab
module BackgroundMigration
class PopulateResolvedOnDefaultBranchColumn
def perform(project_ids)
project_ids.each { |project_id| PopulateResolvedOnDefaultBranchColumnForProject.perform(project_id) }
module PopulateResolvedOnDefaultBranchColumn
def perform(*project_ids)
project_ids.flatten.each { |project_id| PopulateResolvedOnDefaultBranchColumnForProject.perform(project_id) }
end
module Routable
......
......@@ -2,7 +2,7 @@
require 'spec_helper'
RSpec.describe EE::Gitlab::BackgroundMigration::PopulateResolvedOnDefaultBranchColumn do
RSpec.describe ::Gitlab::BackgroundMigration::PopulateResolvedOnDefaultBranchColumn do
let(:users) { table(:users) }
let(:namespaces) { table(:namespaces) }
let(:projects) { table(:projects) }
......
......@@ -9,4 +9,4 @@ module Gitlab
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