summaryrefslogtreecommitdiff
path: root/lib/tasks/migrate
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-10-07 17:42:47 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2015-10-08 14:35:36 +0200
commitc8f18fc56283859f47ab50a5e14a7b292f8e54a5 (patch)
tree2f14088e98a9dee352ba4a29a0b8b0c31d46faa3 /lib/tasks/migrate
parent03417456f0b7db408bfefd28e5b9342889b7f711 (diff)
downloadgitlab-ce-c8f18fc56283859f47ab50a5e14a7b292f8e54a5.tar.gz
Added dedicated Rake task for setting up Postgres
This ensures any PostgreSQL specific schema changes (e.g. expression indexes) are created when setting up the database.
Diffstat (limited to 'lib/tasks/migrate')
-rw-r--r--lib/tasks/migrate/setup_postgresql.rake6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tasks/migrate/setup_postgresql.rake b/lib/tasks/migrate/setup_postgresql.rake
new file mode 100644
index 00000000000..bf6894a8351
--- /dev/null
+++ b/lib/tasks/migrate/setup_postgresql.rake
@@ -0,0 +1,6 @@
+require Rails.root.join('db/migrate/20151007120511_namespaces_projects_path_lower_indexes')
+
+desc 'GitLab | Sets up PostgreSQL'
+task setup_postgresql: :environment do
+ NamespacesProjectsPathLowerIndexes.new.up
+end