Topic: rake db:migrate - doing nothing to the database

I'm going through the 'Depot' project in the "Agile Web Development with Rails" book.

I've got a migration file "003_add_test_data.rb" which is supposed to add 3 entries into the database (the code taken right out of the book).  However, when I run "rake db:migrate --trace" I get this, and it does nothing to the database at all:

(in C:/InstantRails/rails_apps/work/depot)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump

And then it's back to the command prompt.  Any ideas?

Re: rake db:migrate - doing nothing to the database

I figured it out.  I didn't realize that I had to revert back to an earlier migration and then run rake db:migrate again.  Too simple, but to a rails beginner, it's not an obvious thing.

Re: rake db:migrate - doing nothing to the database

Hey Josh,

Another thing to watch out for is the schema table in your database. If you drop this table your migrations will run fresh.