Forum: Ruby on Rails diff between ( rake db:migrate VERSION0 ) and (rake db:rollback)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Vipin (Guest)
on 2009-05-14 23:02
(Received via mailing list)
what is the difference between
 rake db:migrate VERSION=0
and
rake db:rollback

the only one i have seen is first one always works and second one
gives error sometimes. .....but i guess both try to do the same
thing.
??

-
vipin
Fernando P. (Guest)
on 2009-05-14 23:06
rollback goes back to the previous version. VERSION= enables you to jump
at any spot in time. But if I recall correctly you can also pass an
option to rollback so that it rolls back more than 1 step, but I have
never used it.
This topic is locked and can not be replied to.