diff options
Diffstat (limited to 'db/post_migrate/20220920135356_tiebreak_user_type_index.rb')
-rw-r--r-- | db/post_migrate/20220920135356_tiebreak_user_type_index.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/post_migrate/20220920135356_tiebreak_user_type_index.rb b/db/post_migrate/20220920135356_tiebreak_user_type_index.rb index 778a957086f..489196c8eab 100644 --- a/db/post_migrate/20220920135356_tiebreak_user_type_index.rb +++ b/db/post_migrate/20220920135356_tiebreak_user_type_index.rb @@ -7,7 +7,9 @@ class TiebreakUserTypeIndex < Gitlab::Database::Migration[2.0] OLD_INDEX_NAME = 'index_users_on_user_type' def up + # rubocop:disable Migration/PreventIndexCreation add_concurrent_index :users, [:user_type, :id], name: NEW_INDEX_NAME + # rubocop:enable Migration/PreventIndexCreation remove_concurrent_index_by_name :users, OLD_INDEX_NAME end |