debian-mirror-gitlab/lib/tasks/migrate/setup_postgresql.rake

19 lines
958 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
require Rails.root.join('lib/gitlab/database')
require Rails.root.join('lib/gitlab/database/migration_helpers')
2015-10-24 18:46:33 +05:30
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')
2017-08-17 22:00:37 +05:30
require Rails.root.join('db/migrate/20161212142807_add_lower_path_index_to_routes')
require Rails.root.join('db/migrate/20170317203554_index_routes_path_for_like')
2017-09-10 17:25:29 +05:30
require Rails.root.join('db/migrate/20170724214302_add_lower_path_index_to_redirect_routes')
2017-08-17 22:00:37 +05:30
require Rails.root.join('db/migrate/20170503185032_index_redirect_routes_path_for_like')
2015-10-24 18:46:33 +05:30
desc 'GitLab | Sets up PostgreSQL'
task setup_postgresql: :environment do
NamespacesProjectsPathLowerIndexes.new.up
AddUsersLowerUsernameEmailIndexes.new.up
2017-08-17 22:00:37 +05:30
AddLowerPathIndexToRoutes.new.up
IndexRoutesPathForLike.new.up
2017-09-10 17:25:29 +05:30
AddLowerPathIndexToRedirectRoutes.new.up
2017-08-17 22:00:37 +05:30
IndexRedirectRoutesPathForLike.new.up
2015-10-24 18:46:33 +05:30
end