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