BigW Consortium Gitlab

20160320204112_index_namespaces_on_visibility_level.rb 200 Bytes
Newer Older
Douwe Maan committed
1 2
class IndexNamespacesOnVisibilityLevel < ActiveRecord::Migration
  def change
3 4 5
    unless index_exists?(:namespaces, :visibility_level)
      add_index :namespaces, :visibility_level
    end
Douwe Maan committed
6 7
  end
end