Simplify down migration.
This commit is contained in:
parent
e0a331aecb
commit
ef077fd9fd
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class AddPartialIndexToProjectsForIndexOnlyScans < ActiveRecord::Migration
|
|||
|
||||
def down
|
||||
if index_exists?(:projects, :id, name: INDEX_NAME)
|
||||
remove_concurrent_index :projects, :id, name: INDEX_NAME, unique: true, where: 'visibility_level IN (10,20)'
|
||||
remove_concurrent_index_by_name :projects, INDEX_NAME
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue