BigW Consortium Gitlab

Commit 44ec4002 by James Lopez

fix project authorizations migration issue

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