From 0c866f4a575d8127efbf3eafda83d8ccfbd97817 Mon Sep 17 00:00:00 2001 From: Michael Kozono Date: Wed, 3 May 2017 15:26:44 -0700 Subject: Resolve discussions --- db/migrate/20170503184421_add_index_to_redirect_routes.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'db/migrate') diff --git a/db/migrate/20170503184421_add_index_to_redirect_routes.rb b/db/migrate/20170503184421_add_index_to_redirect_routes.rb index 5991f6ab6a1..9062cf19a73 100644 --- a/db/migrate/20170503184421_add_index_to_redirect_routes.rb +++ b/db/migrate/20170503184421_add_index_to_redirect_routes.rb @@ -1,7 +1,6 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -# rubocop:disable RemoveIndex class AddIndexToRedirectRoutes < ActiveRecord::Migration include Gitlab::Database::MigrationHelpers @@ -16,7 +15,7 @@ class AddIndexToRedirectRoutes < ActiveRecord::Migration end def down - remove_index(:redirect_routes, :path) if index_exists?(:redirect_routes, :path) - remove_index(:redirect_routes, [:source_type, :source_id]) if index_exists?(:redirect_routes, [:source_type, :source_id]) + remove_concurrent_index(:redirect_routes, :path) if index_exists?(:redirect_routes, :path) + remove_concurrent_index(:redirect_routes, [:source_type, :source_id]) if index_exists?(:redirect_routes, [:source_type, :source_id]) end end -- cgit v1.2.1