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/20191214175727_add_indexes_to_deployments_on_project_id_and_ref.rb')
-rw-r--r--db/migrate/20191214175727_add_indexes_to_deployments_on_project_id_and_ref.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/db/migrate/20191214175727_add_indexes_to_deployments_on_project_id_and_ref.rb b/db/migrate/20191214175727_add_indexes_to_deployments_on_project_id_and_ref.rb
deleted file mode 100644
index ea92f9cfd32..00000000000
--- a/db/migrate/20191214175727_add_indexes_to_deployments_on_project_id_and_ref.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# frozen_string_literal: true
-
-class AddIndexesToDeploymentsOnProjectIdAndRef < ActiveRecord::Migration[5.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- INDEX_NAME = 'partial_index_deployments_for_project_id_and_tag'
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_index :deployments, [:project_id, :ref]
- add_concurrent_index :deployments, [:project_id], where: 'tag IS TRUE', name: INDEX_NAME
- end
-
- def down
- remove_concurrent_index :deployments, [:project_id, :ref]
- remove_concurrent_index :deployments, [:project_id], where: 'tag IS TRUE', name: INDEX_NAME
- end
-end