diff options
Diffstat (limited to 'db/migrate/20160320204112_index_namespaces_on_visibility_level.rb')
-rw-r--r-- | db/migrate/20160320204112_index_namespaces_on_visibility_level.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20160320204112_index_namespaces_on_visibility_level.rb b/db/migrate/20160320204112_index_namespaces_on_visibility_level.rb new file mode 100644 index 00000000000..370b339d45c --- /dev/null +++ b/db/migrate/20160320204112_index_namespaces_on_visibility_level.rb @@ -0,0 +1,7 @@ +class IndexNamespacesOnVisibilityLevel < ActiveRecord::Migration + def change + unless index_exists?(:namespaces, :visibility_level) + add_index :namespaces, :visibility_level + end + end +end |