diff options
author | Miguel Rincon <mrincon@gitlab.com> | 2019-08-14 16:08:57 -0500 |
---|---|---|
committer | Miguel Rincon <mrincon@gitlab.com> | 2019-08-16 15:55:48 -0500 |
commit | 7939ff72bcceec539d837cf483ed7ee633140f20 (patch) | |
tree | 7aa9846ba9807faf4c0b518adab3243758c0741a | |
parent | 7cd6efe7775aabe343600989a3af657b3ddcd215 (diff) | |
download | gitlab-ce-7939ff72bcceec539d837cf483ed7ee633140f20.tar.gz |
Add dashboard migration
-rw-r--r-- | db/migrate/20190814205640_import_common_metrics_line_charts.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20190814205640_import_common_metrics_line_charts.rb b/db/migrate/20190814205640_import_common_metrics_line_charts.rb new file mode 100644 index 00000000000..a1bb6e7b8db --- /dev/null +++ b/db/migrate/20190814205640_import_common_metrics_line_charts.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class ImportCommonMetricsLineCharts < ActiveRecord::Migration[5.2] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + ::Gitlab::DatabaseImporters::CommonMetrics::Importer.new.execute + end + + def down + # no-op + end +end |