Make migration to add index on project_registries reversible

parent 3ff1ff0e
......@@ -5,7 +5,11 @@ class AddIndexToProjectIdOnProjectRegistries < ActiveRecord::Migration
disable_ddl_transaction!
def change
def up
add_concurrent_index :project_registries, :project_id
end
def down
remove_index :project_registries, :project_id
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