From c9a126dd85ff7ef1ad0340bb17353a5415e40171 Mon Sep 17 00:00:00 2001 From: bserie Date: Tue, 28 Feb 2017 18:44:44 +0100 Subject: [PATCH] bundle exec rake db:migrate:redo --- HowtoGitlab/8.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/HowtoGitlab/8.md b/HowtoGitlab/8.md index 151f1b59..46f32d90 100644 --- a/HowtoGitlab/8.md +++ b/HowtoGitlab/8.md @@ -513,4 +513,12 @@ $ psql bar < foo.sql ~~~ # sudo -iu postgres psql bar REASSIGN OWNED BY "foo" TO "bar"; -~~~ \ No newline at end of file +~~~ + +## Downgrader le schéma SQL + +Par exemple si on downgrade une version (8.17 à 8.16.7). Il faudra récupérer la bonne version dans db/migrate. Exemple : + +``` +$ bundle exec rake db:migrate:redo RAILS_ENV=production VERSION=20161223034646 +``` \ No newline at end of file