Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20160320204112_index_namespaces_on_visibility_level.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 370b339d45c7ace3c748cbb868e58e4c0a54d9f5 (plain)
1
2
3
4
5
6
7
class IndexNamespacesOnVisibilityLevel < ActiveRecord::Migration
  def change
    unless index_exists?(:namespaces, :visibility_level)
      add_index :namespaces, :visibility_level
    end
  end
end