diff options
author | Chris Baumbauer <cab@cabnetworks.net> | 2019-04-17 21:36:06 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-04-17 21:36:06 +0300 |
commit | 81d2c7b6fceae79b7c4be49b161160ddc2883aaa (patch) | |
tree | 4e7529ba3ba6a907762e8a1cfdc25a178dcb3802 /db/migrate/20190408163745_prometheus_knative05_fix.rb | |
parent | dd7cb7bc60f828372dbe2cc8a30a70f97db12600 (diff) |
Bump version of knative from 0.3 -> 0.5
Diffstat (limited to 'db/migrate/20190408163745_prometheus_knative05_fix.rb')
-rw-r--r-- | db/migrate/20190408163745_prometheus_knative05_fix.rb | 20 |
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 |