Commit 2f40a2ee authored by Andreas Brandl's avatar Andreas Brandl

Explicitly remove index by name

Relates to https://gitlab.com/gitlab-org/gitlab/issues/33084
parent 01fd6f35
...@@ -12,10 +12,10 @@ class RemoveRendundantIndexFromReleases < ActiveRecord::Migration[5.2] ...@@ -12,10 +12,10 @@ class RemoveRendundantIndexFromReleases < ActiveRecord::Migration[5.2]
disable_ddl_transaction! disable_ddl_transaction!
def up def up
remove_concurrent_index :releases, :project_id remove_concurrent_index_by_name :releases, 'index_releases_on_project_id'
end end
def down def down
add_concurrent_index :releases, :project_id add_concurrent_index :releases, :project_id, name: 'index_releases_on_project_id'
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment