Commit 44ec4002 authored by James Lopez's avatar James Lopez

fix project authorizations migration issue

parent 0bd4c17e
......@@ -6,8 +6,10 @@ class AddIndexToProjectAuthorizations < ActiveRecord::Migration
disable_ddl_transaction!
def up
unless index_exists?(:project_authorizations, :project_id)
add_concurrent_index(:project_authorizations, :project_id)
end
end
def down
remove_index(:project_authorizations, :project_id) if
......
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