20160320204112_index_namespaces_on_visibility_level.rb 227 Bytes
Newer Older
1
# rubocop:disable all
2
class IndexNamespacesOnVisibilityLevel < ActiveRecord::Migration[4.2]
Douwe Maan's avatar
Douwe Maan committed
3
  def change
4 5 6
    unless index_exists?(:namespaces, :visibility_level)
      add_index :namespaces, :visibility_level
    end
Douwe Maan's avatar
Douwe Maan committed
7 8
  end
end