Rails and migrations
bundle exec rails db:migrate VERSION=XXX
This will rollback your migration to given VERSION but without it – it means, that status of given VERSION will be up
so this bundle exec rails db:migrate VERSION=20200507114041 give us:
up 20200506125134 Remove dates from congress up 20200506125135 Add slug to congresses up 20200507114041 Create congress days down 20200507124949 Add phone to users down 20200508084007 Create appointments down 20200508084102 Create join table appointment speaker
Of course to print current migration status use:
bundle exec rails db:migrate:status
Najnowsze komentarze