validate_presence_of unit testing with if condition

Ensure your test database is up to date schema-wise.

rake db:test:clone

If you recently did a migrate, that puts your test db out of sync.

I’ve got a plugin I’ll release soon that just makes db:migrate do the db:test:clone step automatically (cos I always forget to do that when I run tests in textmate)