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/post_migrate/20200114112932_add_temporary_partial_index_on_project_id_to_services.rb')
-rw-r--r--db/post_migrate/20200114112932_add_temporary_partial_index_on_project_id_to_services.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/db/post_migrate/20200114112932_add_temporary_partial_index_on_project_id_to_services.rb b/db/post_migrate/20200114112932_add_temporary_partial_index_on_project_id_to_services.rb
deleted file mode 100644
index 55494f1e4ac..00000000000
--- a/db/post_migrate/20200114112932_add_temporary_partial_index_on_project_id_to_services.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-# 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 AddTemporaryPartialIndexOnProjectIdToServices < ActiveRecord::Migration[5.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- INDEX_NAME = 'tmp_index_on_project_id_partial_with_prometheus_services'
- PARTIAL_FILTER = "type = 'PrometheusService'"
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_index :services, :project_id, where: PARTIAL_FILTER, name: INDEX_NAME
- end
-
- def down
- remove_concurrent_index :services, :project_id, where: PARTIAL_FILTER, name: INDEX_NAME
- end
-end