title: How do you edit a database migration?
body: <p>I renamed a few tables and some columns. When I run the <code>Add-Migration</code> command, the migration generates code that drops the old tables and columns and adds ones with the new names. This results in losing the data they contained.</p>
  <p>Since I don't want to lose the data, I want to edit the migration, removing the drop and add commands, and replacing them with rename commands.</p>
  <p>But after I edit a migration, how do I apply that change?</p>
  <p>If I run the <code>Update-Database</code> command, that applies it to the database. But not to the snapshot that Entity Framework maintains of my schema (stored in <code>ApplicationDbContextModelSnapshot</code>).</p>
  <p>I need a way to incorporate my edits into the model. How can I accomplish this?</p>