diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-12-22 16:13:48 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-12-22 16:13:48 +0300 |
commit | 299e04e318728d4ee5857379f8fb350c944a0b4e (patch) | |
tree | b9036df9d5d2e78bf329fc4293cca39821049145 /lib | |
parent | 38fe3418d891fa892d777d3d44717eb3e0c106c7 (diff) | |
parent | 680ebf449bc5700f827559660f28fb4e47022828 (diff) |
Merge branch 'index-namespaces-lower-name' into 'master'
Add index on namespaces lower(name) for UsersController#exists
Closes #41340
See merge request gitlab-org/gitlab-ce!16059
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/migrate/setup_postgresql.rake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tasks/migrate/setup_postgresql.rake b/lib/tasks/migrate/setup_postgresql.rake index 9cc986535e1..c9e3eed82f2 100644 --- a/lib/tasks/migrate/setup_postgresql.rake +++ b/lib/tasks/migrate/setup_postgresql.rake @@ -6,6 +6,7 @@ require Rails.root.join('db/migrate/20161212142807_add_lower_path_index_to_route require Rails.root.join('db/migrate/20170317203554_index_routes_path_for_like') require Rails.root.join('db/migrate/20170724214302_add_lower_path_index_to_redirect_routes') require Rails.root.join('db/migrate/20170503185032_index_redirect_routes_path_for_like') +require Rails.root.join('db/migrate/20171220191323_add_index_on_namespaces_lower_name.rb') desc 'GitLab | Sets up PostgreSQL' task setup_postgresql: :environment do @@ -15,4 +16,5 @@ task setup_postgresql: :environment do IndexRoutesPathForLike.new.up AddLowerPathIndexToRedirectRoutes.new.up IndexRedirectRoutesPathForLike.new.up + AddIndexOnNamespacesLowerName.new.up end |