I created a migration a while ago that I must have forgotten to populate or something. I just went to recreate it and got the following:
Another migration is already named add_user_id_to_comments:
foo/db/migrate/20121103004535_add_user_id_to_comments.rb
I’ve run `rake db:migrate’ a bunch of times since and have a handfull of new migrations…
What’s the best way out of this mess?
If the old one is completely blank, just delete it. Its absence will not adversely affect anything. If you want to remove all traces, you’ll also want to remove 20121103004535 from your
schema_migrationstable, but it is not required….