Adam Milligan's blog



Adam MilliganAdam Milligan
Rake, Set, Match!
edit Posted by Adam Milligan on Sunday August 23, 2009 at 04:30PM

A few days ago I finally discovered why rake db:migrate:redo consistently angers me nearly as much as watching Paula Dean deep fry the vegetable kingdom. As any devoted connoisseur of the db rake tasks in Rails knows, db:migrate:redo always leaves your schema.rb file in the wrong state. The reason, as mentioned in our standup blog, is that rake will only invoke a given task once in a particular run.

To trivially test this try running a single task twice:

rake db:rollback db:rollback

You'll find that your database only rolls back one migration. Now, you can set the STEP environment variable when calling db:rollback, but this is, as I said, a trivial example. It gets worse.

Adam MilliganAdam Milligan
Rake test error due to --trace argument
edit Posted by Adam Milligan on Friday October 31, 2008 at 06:10PM

We've had some trouble with test task errors causing failing builds on our continuous integration boxes ever since the release of the version 0.8.3 rake gem. Sound familiar? Read on!