summaryrefslogtreecommitdiff
path: root/db/migrate/20190408163745_prometheus_knative05_fix.rb
blob: c11f6f0e29b5943baa8de89fb78f496bd294dfa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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