summaryrefslogtreecommitdiff
path: root/db/migrate/20191204093410_add_label_project_group_partial_indexes.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-20 08:43:02 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-20 08:43:02 +0000
commitd9ab72d6080f594d0b3cae15f14b3ef2c6c638cb (patch)
tree2341ef426af70ad1e289c38036737e04b0aa5007 /db/migrate/20191204093410_add_label_project_group_partial_indexes.rb
parentd6e514dd13db8947884cd58fe2a9c2a063400a9b (diff)
downloadgitlab-ce-d9ab72d6080f594d0b3cae15f14b3ef2c6c638cb.tar.gz
Add latest changes from gitlab-org/gitlab@14-4-stable-eev14.4.0-rc42
Diffstat (limited to 'db/migrate/20191204093410_add_label_project_group_partial_indexes.rb')
-rw-r--r--db/migrate/20191204093410_add_label_project_group_partial_indexes.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/db/migrate/20191204093410_add_label_project_group_partial_indexes.rb b/db/migrate/20191204093410_add_label_project_group_partial_indexes.rb
deleted file mode 100644
index 85666144856..00000000000
--- a/db/migrate/20191204093410_add_label_project_group_partial_indexes.rb
+++ /dev/null
@@ -1,25 +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 AddLabelProjectGroupPartialIndexes < ActiveRecord::Migration[5.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- PROJECT_AND_TITLE = [:project_id, :title]
- GROUP_AND_TITLE = [:group_id, :title]
-
- def up
- add_concurrent_index :labels, PROJECT_AND_TITLE, unique: false, where: "labels.group_id = null"
- add_concurrent_index :labels, GROUP_AND_TITLE, unique: false, where: "labels.project_id = null"
- end
-
- def down
- remove_concurrent_index :labels, PROJECT_AND_TITLE
- remove_concurrent_index :labels, GROUP_AND_TITLE
- end
-end