Commit d3d0ebe2 authored by Ryan Cobb's avatar Ryan Cobb

Fully namespace importer in migrations

parent ea0106d8
# frozen_string_literal: true # frozen_string_literal: true
Importers::CommonMetrics::Importer.new.execute ::Gitlab::Importers::CommonMetrics::Importer.new.execute
# frozen_string_literal: true # frozen_string_literal: true
Importers::CommonMetrics::Importer.new.execute ::Gitlab::Importers::CommonMetrics::Importer.new.execute
...@@ -4,7 +4,7 @@ class ImportCommonMetricsNginxVts < ActiveRecord::Migration[5.0] ...@@ -4,7 +4,7 @@ class ImportCommonMetricsNginxVts < ActiveRecord::Migration[5.0]
DOWNTIME = false DOWNTIME = false
def up def up
Importers::CommonMetrics::Importer.new.execute ::Gitlab::Importers::CommonMetrics::Importer.new.execute
end end
def down def down
......
...@@ -6,7 +6,7 @@ class ImportCommonMetricsKnative < ActiveRecord::Migration[5.0] ...@@ -6,7 +6,7 @@ class ImportCommonMetricsKnative < ActiveRecord::Migration[5.0]
DOWNTIME = false DOWNTIME = false
def up def up
Importers::CommonMetrics::Importer.new.execute ::Gitlab::Importers::CommonMetrics::Importer.new.execute
end end
def down def down
......
...@@ -9,7 +9,7 @@ class PrometheusKnative05Fix < ActiveRecord::Migration[5.0] ...@@ -9,7 +9,7 @@ class PrometheusKnative05Fix < ActiveRecord::Migration[5.0]
DOWNTIME = false DOWNTIME = false
def up def up
Importers::CommonMetrics::Importer.new.execute ::Gitlab::Importers::CommonMetrics::Importer.new.execute
end end
def down def down
......
...@@ -36,7 +36,7 @@ class ImportCommonMetrics < ActiveRecord::Migration[4.2] ...@@ -36,7 +36,7 @@ class ImportCommonMetrics < ActiveRecord::Migration[4.2]
DOWNTIME = false DOWNTIME = false
def up def up
Importers::CommonMetrics::Importer.new.execute ::Gitlab::Importers::CommonMetrics::Importer.new.execute
end end
def down def down
......
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