From: Matt Harrison Date: 2009-01-12T06:15:10+09:00 Subject: Re: reccommended work flow for unit tests and databases in ruby Phlip wrote: >> Well I'm just getting into TDD and thats going well, but I did notice >> that when running rake:test, that it complains there are migrations >> that need to be run before the tests will be performed, even though >> the tests are running on a different database. > > That's because the migrations (should!) happen on the Development > database, and this gets cloned into the Test database just before each > test run... > So on the development database, it's safe to add the columns or whatever manually, update the migration to reflect the changes and test/code as usual. Then when the production deployment happens it uses the migrations from scratch? Thanks Matt