Commit 8526f0d0 authored by Micaël Bergeron's avatar Micaël Bergeron
Browse files

fix the migration from not reverting correctly

parent 67c9d096a662
......@@ -9,12 +9,12 @@ class AddUploaderIndexToUploads < ActiveRecord::Migration
disable_ddl_transaction!
def up
remove_concurrent_index :uploads, :path if index_exists? :uploads, :path
remove_concurrent_index :uploads, :path
add_concurrent_index :uploads, [:uploader, :path], using: :btree
end
def down
remove_concurrent_index :uploads, [:uploader, :path] if index_exists? :uploads, [:uploads, :path]
remove_concurrent_index :uploads, [:uploader, :path]
add_concurrent_index :uploads, :path, using: :btree
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