summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-13 14:48:02 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-12-13 14:48:02 +0200
commitec25abe6255a1cc0a4c68192894cc7ac1cb90f54 (patch)
tree97f9c3e825b063220482646ea2c965ceef355a52 /lib/tasks
parent211f019382c5e3fcf4812199aaf09b850eab09dd (diff)
downloadgitlab-ce-ec25abe6255a1cc0a4c68192894cc7ac1cb90f54.tar.gz
Add AddLowerPathIndexToRoutes to setup_postgresql.rake
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/migrate/setup_postgresql.rake4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tasks/migrate/setup_postgresql.rake b/lib/tasks/migrate/setup_postgresql.rake
index 141a0b74ec0..f5caca3ddbf 100644
--- a/lib/tasks/migrate/setup_postgresql.rake
+++ b/lib/tasks/migrate/setup_postgresql.rake
@@ -1,8 +1,12 @@
+require Rails.root.join('lib/gitlab/database')
+require Rails.root.join('lib/gitlab/database/migration_helpers')
require Rails.root.join('db/migrate/20151007120511_namespaces_projects_path_lower_indexes')
require Rails.root.join('db/migrate/20151008110232_add_users_lower_username_email_indexes')
+require Rails.root.join('db/migrate/20161212142807_add_lower_path_index_to_routes')
desc 'GitLab | Sets up PostgreSQL'
task setup_postgresql: :environment do
NamespacesProjectsPathLowerIndexes.new.up
AddUsersLowerUsernameEmailIndexes.new.up
+ AddLowerPathIndexToRoutes.new.up
end