Commit ef077fd9 authored by Andreas Brandl's avatar Andreas Brandl

Simplify down migration.

parent e0a331ae
......@@ -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
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