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:
Diffstat (limited to 'db/migrate/20200319124127_create_metrics_dashboard_annotations.rb')
-rw-r--r--db/migrate/20200319124127_create_metrics_dashboard_annotations.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/db/migrate/20200319124127_create_metrics_dashboard_annotations.rb b/db/migrate/20200319124127_create_metrics_dashboard_annotations.rb
deleted file mode 100644
index 9e10299b4f8..00000000000
--- a/db/migrate/20200319124127_create_metrics_dashboard_annotations.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-# frozen_string_literal: true
-
-# See https://docs.gitlab.com/ee/development/migration_style_guide.html
-# for more information on how to write migrations for GitLab.
-
-class CreateMetricsDashboardAnnotations < ActiveRecord::Migration[6.0]
- # Set this constant to true if this migration requires downtime.
- DOWNTIME = false
-
- # rubocop:disable Migration/PreventStrings
- def change
- create_table :metrics_dashboard_annotations do |t|
- t.datetime_with_timezone :starting_at, null: false
- t.datetime_with_timezone :ending_at
- t.references :environment, index: false, foreign_key: { on_delete: :cascade }, null: true
- t.references :cluster, index: false, foreign_key: { on_delete: :cascade }, null: true
- t.string :dashboard_path, null: false, limit: 255
- t.string :panel_xid, limit: 255
- t.text :description, null: false, limit: 255 # rubocop:disable Migration/AddLimitToTextColumns
-
- t.index %i(environment_id dashboard_path starting_at ending_at), where: 'environment_id IS NOT NULL', name: "index_metrics_dashboard_annotations_on_environment_id_and_3_col"
- t.index %i(cluster_id dashboard_path starting_at ending_at), where: 'cluster_id IS NOT NULL', name: "index_metrics_dashboard_annotations_on_cluster_id_and_3_columns"
- end
- end
- # rubocop:enable Migration/PreventStrings
-end