summaryrefslogtreecommitdiff
path: root/db/migrate/20190408163745_prometheus_knative05_fix.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20190408163745_prometheus_knative05_fix.rb')
-rw-r--r--db/migrate/20190408163745_prometheus_knative05_fix.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/db/migrate/20190408163745_prometheus_knative05_fix.rb b/db/migrate/20190408163745_prometheus_knative05_fix.rb
new file mode 100644
index 00000000000..c11f6f0e29b
--- /dev/null
+++ b/db/migrate/20190408163745_prometheus_knative05_fix.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class PrometheusKnative05Fix < ActiveRecord::Migration[5.0]
+ include Gitlab::Database::MigrationHelpers
+
+ require Rails.root.join('db/importers/common_metrics_importer.rb')
+
+ DOWNTIME = false
+
+ def up
+ Importers::CommonMetricsImporter.new.execute
+ end
+
+ def down
+ # no-op
+ end
+end