bundle exec rake db:migrate:redo
This commit is contained in:
parent
c0af694a26
commit
c9a126dd85
|
@ -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
|
||||
```
|
Loading…
Reference in New Issue