Rake just one migration

Anon picture Anon · Aug 26, 2009 · Viewed 68.8k times · Source

I'm trying to run just one migration out of a whole bunch in my rails app. How can I do this? I don't want to run any of the migrations before or after it. Thanks.

Answer

Ryan Bigg picture Ryan Bigg · Aug 26, 2009

rake db:migrate:redo VERSION=xxxxxxx, but that will run the down and then the up step. You could do this in conjunction with commenting out the down step temporarily.