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/20200317110602_add_migrating_user_highest_roles_table_index_to_users.rb')
-rw-r--r--db/migrate/20200317110602_add_migrating_user_highest_roles_table_index_to_users.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/db/migrate/20200317110602_add_migrating_user_highest_roles_table_index_to_users.rb b/db/migrate/20200317110602_add_migrating_user_highest_roles_table_index_to_users.rb
deleted file mode 100644
index e67dc323c39..00000000000
--- a/db/migrate/20200317110602_add_migrating_user_highest_roles_table_index_to_users.rb
+++ /dev/null
@@ -1,24 +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 AddMigratingUserHighestRolesTableIndexToUsers < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
- INDEX_NAME = 'index_for_migrating_user_highest_roles_table'
-
- disable_ddl_transaction!
-
- def up
- add_concurrent_index :users,
- :id,
- where: "state = 'active' AND user_type IS NULL AND bot_type IS NULL AND ghost IS NOT TRUE",
- name: INDEX_NAME
- end
-
- def down
- remove_concurrent_index :users, :id, name: INDEX_NAME
- end
-end