Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-09-05 22:29:21 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-09-05 22:55:04 +0300
commit1fbcc427f3ae2976467b6f17497fec6bfd73701d (patch)
tree8f5dec879bb8caf3d5e77a1a481864d32e6f944f /db/migrate/20180101160630_change_project_id_for_prometheus_metrics.rb
parent8ae169a92536df219e0d71ba61c4def38d086639 (diff)
Move `prometheus_metrics:project_id` right after creation of prometheus metrics
Diffstat (limited to 'db/migrate/20180101160630_change_project_id_for_prometheus_metrics.rb')
-rw-r--r--db/migrate/20180101160630_change_project_id_for_prometheus_metrics.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20180101160630_change_project_id_for_prometheus_metrics.rb b/db/migrate/20180101160630_change_project_id_for_prometheus_metrics.rb
new file mode 100644
index 00000000000..1bdc4e48518
--- /dev/null
+++ b/db/migrate/20180101160630_change_project_id_for_prometheus_metrics.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class ChangeProjectIdForPrometheusMetrics < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def change
+ change_column_null :prometheus_metrics, :project_id, true
+ end
+end