19
0
Fork 0

bundle exec rake db:migrate:redo

This commit is contained in:
Benoît S. 2017-02-28 18:44:44 +01:00
parent c0af694a26
commit c9a126dd85
1 changed files with 9 additions and 1 deletions

View File

@ -513,4 +513,12 @@ $ psql bar < foo.sql
~~~
# sudo -iu postgres psql bar
REASSIGN OWNED BY "foo" TO "bar";
~~~
~~~
## 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
```