summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-05-03 15:26:44 -0700
committerMichael Kozono <mkozono@gmail.com>2017-05-05 12:12:49 -0700
commit0c866f4a575d8127efbf3eafda83d8ccfbd97817 (patch)
treeda00182ea8dbba39cf72ae15b857b40aa84d5342 /db
parentfc061c2ecd2e292383017c703220bfb22d0d6dce (diff)
downloadgitlab-ce-0c866f4a575d8127efbf3eafda83d8ccfbd97817.tar.gz
Resolve discussions
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170503184421_add_index_to_redirect_routes.rb5
1 files changed, 2 insertions, 3 deletions
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