2016-03-20 17:55:08 -04:00
|
|
|
class IndexNamespacesOnVisibilityLevel < ActiveRecord::Migration
|
|
|
|
def change
|
2016-03-21 22:16:37 -04:00
|
|
|
unless index_exists?(:namespaces, :visibility_level)
|
|
|
|
add_index :namespaces, :visibility_level
|
|
|
|
end
|
2016-03-20 17:55:08 -04:00
|
|
|
end
|
|
|
|
end
|