I have a model called ModelA
that I want to rename to ModelB
.
I generated ModelA
by doing rails g scaffold ModelA
. That generated the model, controller, views, specs, routes, etc.
How do I cleanly change the name of ModelA
given that I have setup associations, join tables, etc.
Also, how do I do it such that my local environment is in sync with Heroku when I push.
I feel like it is very easy to mess this up.