I started my project with Rails 2.0 and created two migrations (wich I
applied with rake db:migrate as usual). So I have these two files
under db/migrate:
Last week I updated my Rails version to 2.1.0 and created a new
migration file (notice the change in nomenclature):
20080806173923_ads_size.rb
Now when I run rake db:migrate I get an error telling me that the Ads
table already exists, like it’s running my first migration class, but
I only want to update the data base to the last migration. Am I doing
something wrong or is this caused by the change in nomenclature or the
update to a new Rails version?
Now when I run rake db:migrate I get an error telling me that the Ads
table already exists, like it’s running my first migration class, but
I only want to update the data base to the last migration. Am I doing
something wrong or is this caused by the change in nomenclature or the
update to a new Rails version?
Turning timestamped migrations off doesn’t work for me (I get an
error). The only workaround I’ve found so far is executing the
migration individually, but I’m afraid that could be a problem in
deployment and in the long term.
People don’t seem to love this new feature though from the comments at
that page :S