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/20200915134004_add_indices_to_approval_project_rules.rb')
-rw-r--r--db/migrate/20200915134004_add_indices_to_approval_project_rules.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/db/migrate/20200915134004_add_indices_to_approval_project_rules.rb b/db/migrate/20200915134004_add_indices_to_approval_project_rules.rb
deleted file mode 100644
index b7b0e1da2cb..00000000000
--- a/db/migrate/20200915134004_add_indices_to_approval_project_rules.rb
+++ /dev/null
@@ -1,25 +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 AddIndicesToApprovalProjectRules < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- RULE_TYPE_INDEX_NAME = 'index_approval_project_rules_on_id_with_regular_type'
- RULE_ID_INDEX_NAME = 'index_approval_project_rules_users_on_approval_project_rule_id'
-
- def up
- add_concurrent_index :approval_project_rules, :id, where: 'rule_type = 0', name: RULE_TYPE_INDEX_NAME
- add_concurrent_index :approval_project_rules_users, :approval_project_rule_id, name: RULE_ID_INDEX_NAME
- end
-
- def down
- remove_concurrent_index :approval_project_rules, :id, where: 'rule_type = 0', name: RULE_TYPE_INDEX_NAME
- remove_concurrent_index :approval_project_rules_users, :approval_project_rule_id, name: RULE_ID_INDEX_NAME
- end
-end