Rails 2.1 Migrations - Looking out for your best interests
June 9th, 2008
I hit upon a nice new feature of Rails 2.1 (at least, I believe this was introduced in 2.1). I was running my test suite in one terminal window, and in another, I went ahead and created a needed migration. I then went back to the window running the tests, identified and fixed some bugs, and then re-ran
rake test:units whereupon I was greeted with this helpful message.
~/dev/projects/resman_machine $ rake test:units (in /Users/bsiggelkow/dev/projects/foo_bar) You have 1 pending migrations: 20080609112303_AddFooToBars Run "rake db:migrate" to update your database then try again.This was definitely a problem that I run into numerous times before. Tests would fail simply because I had neglected to run some migrations. Rails just keeps on getting better and better.


Sorry, comments are closed for this article.