tag:blogger.com,1999:blog-11593374.post464482304449274445..comments2008-01-28T12:49:06.208ZComments on Andrew Beacock's Blog: How to rollback Rails database migrationsabeacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-11593374.post-72491183414860388082008-01-28T12:49:00.000Z2008-01-28T12:49:00.000Z2008-01-28T12:49:00.000ZPaul, you can also just use "2" as your version nu...Paul, you can also just use "2" as your version number as Rails equates "002" as "2" internally anyway.<BR/><BR/>Glad you found my post some use though! :)abeacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-35440524904931924702008-01-27T23:29:00.000Z2008-01-27T23:29:00.000Z2008-01-27T23:29:00.000ZUseful info. I managed to rollback using "rake db...Useful info. I managed to rollback using "rake db:migrate VERSION=002" where the current version was named "003_add_test_data.rb" and the previous version named "002_add_price.rb". Thanks for the help.Paul Clarkehttp://www.blogger.com/profile/13653648834292453696noreply@blogger.comtag:blogger.com,1999:blog-11593374.post-88488842367001238242008-01-20T14:01:00.000Z2008-01-20T14:01:00.000Z2008-01-20T14:01:00.000ZI tried a :"rake db:migrate VERSION=X" to see what...I tried a :<BR/>"rake db:migrate VERSION=X" to see what it did ..."<BR/><BR/>It removed all my my database tables<BR/><BR/>DON'T DO IT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-11593374.post-48632460196926333452007-12-13T11:12:00.000Z2007-12-13T11:12:00.000Z2007-12-13T11:12:00.000ZBehold, for I am become a cow, the mo-oer of world...Behold, for I am become a cow, the mo-oer of worlds.Ravin Dave Dnoreply@blogger.com