Commit daedfbd2 authored by Andreas Brandl's avatar Andreas Brandl

Change order of index drop/create

parent 6c427abc
......@@ -20,7 +20,7 @@ class CreateIndexOnNotesNote < ActiveRecord::Migration[6.0]
end
def down
remove_concurrent_index_by_name :notes, DUPLICATE_INDEX_NAME
add_concurrent_index :notes, :note, name: CURRENT_INDEX_NAME, using: :gin, opclass: :gin_trgm_ops
remove_concurrent_index_by_name :notes, DUPLICATE_INDEX_NAME
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