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/20200917165525_update_index_on_namespaces_for_type_and_id.rb')
-rw-r--r--db/post_migrate/20200917165525_update_index_on_namespaces_for_type_and_id.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/db/post_migrate/20200917165525_update_index_on_namespaces_for_type_and_id.rb b/db/post_migrate/20200917165525_update_index_on_namespaces_for_type_and_id.rb
deleted file mode 100644
index 35b72b4f160..00000000000
--- a/db/post_migrate/20200917165525_update_index_on_namespaces_for_type_and_id.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-# frozen_string_literal: true
-
-class UpdateIndexOnNamespacesForTypeAndId < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- disable_ddl_transaction!
-
- OLD_INDEX_NAME = 'index_namespaces_on_type_partial'
- NEW_INDEX_NAME = 'index_namespaces_on_type_and_id_partial'
-
- def up
- add_concurrent_index(:namespaces, [:type, :id], where: 'type IS NOT NULL', name: NEW_INDEX_NAME)
-
- remove_concurrent_index_by_name(:namespaces, OLD_INDEX_NAME)
- end
-
- def down
- add_concurrent_index(:namespaces, :type, where: 'type IS NOT NULL', name: OLD_INDEX_NAME)
-
- remove_concurrent_index_by_name(:namespaces, NEW_INDEX_NAME)
- end
-end