BigW Consortium Gitlab

Commit cbdbbcbc by Rubén Dávila

Check if index exists before adding it. [ci skip]

* I got an error when updating GDK because it already exists.
parent 3a78f7ca
class IndexNamespacesOnVisibilityLevel < ActiveRecord::Migration
def change
unless index_exists?(:namespaces, :visibility_level)
add_index :namespaces, :visibility_level
end
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