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: 07ae7c95477d6cec99150d6ab374332188fc2ee4 (plain)
1
2
3
4
5
6
7
8
# rubocop:disable all
class IndexNamespacesOnVisibilityLevel < ActiveRecord::Migration
  def change
    unless index_exists?(:namespaces, :visibility_level)
      add_index :namespaces, :visibility_level
    end
  end
end