Why is Rails is trying to rerun migrations on production?

Posted by ryeguy on Stack Overflow See other posts from Stack Overflow or by ryeguy
Published on 2010-05-14T00:45:21Z Indexed on 2010/05/14 0:54 UTC
Read the original article Hit count: 322

Filed under:
|

On my server when deploying the app for the first time, I ran rake db:setup which loads my entire migration history from schema.rb. Now I have more stuff I want to add, but when I run rake db:migrate on my server I realize it's trying to run my very first migration, which is failing since the table obviously exists.

Examining the schema_migrations table on my production server, I realize it only has one entry in it, which is the migration that was the most current at the time of the initial deployment. Isn't it supposed to have the entire migration history in it? If so, what caused this? If not, why is it doing this?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about migration