Today I
had to change a belongs_to
associate to an has_and_belongs_to_many
in a Rails
project I’m currently working on. Not that hard you would say, but there were some catches for
deploying/migrating these changes to the production environment.
In this post I’d like to explain how to achieve this without having to do multiple deployments of your model to maintain a consistent database schema and model.