summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorLaura Montemayor <lmontemayor@gitlab.com>2019-07-26 15:35:10 +0000
committerMayra Cabrera <mcabrera@gitlab.com>2019-07-26 15:35:10 +0000
commit5a96c0534355dab491a620d3b954d9424a43ae36 (patch)
treefe486ea21e8e4beef9f7eeb30cbccdd5ad3fd78f /db
parentfc3d0595c48095450bc6495ab643e98c5661888f (diff)
downloadgitlab-ce-5a96c0534355dab491a620d3b954d9424a43ae36.tar.gz
Updates label value to include units in metrics
This MR updates the y_label values and the label values in common_metrics and cluster_metrics to append the units of measurement to the labels.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20190709220014_import_common_metrics_y_axis.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20190709220014_import_common_metrics_y_axis.rb b/db/migrate/20190709220014_import_common_metrics_y_axis.rb
new file mode 100644
index 00000000000..89ecf32ecc1
--- /dev/null
+++ b/db/migrate/20190709220014_import_common_metrics_y_axis.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class ImportCommonMetricsYAxis < ActiveRecord::Migration[5.1]
+ DOWNTIME = false
+
+ def up
+ ::Gitlab::DatabaseImporters::CommonMetrics::Importer.new.execute
+ end
+
+ def down
+ # no-op
+ end
+end