Commit cbdbbcbc authored by Rubén Dávila's avatar 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
add_index :namespaces, :visibility_level
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