title: Continuous Integration with EF Code First Migrations
body: <p>I was wondering if I could automate completely code first migrations for continuous integration. </p>
  
  <p>Currently my <strong>continuous integration</strong> simply simply updates the code changes, however, I manually <strong>generate a migration</strong>, and update the database on my continuous integration server. </p>
  
  <p>Is it reliable / possible / recommended to generate the migrations and update the database automatically?</p>
  
  <p><strong>For example:</strong></p>
  
  <p>I have user with property userId and username. I then add a property age into the code. Current scenario would require me to create a migration that will capture this change, and then I check in my changes to the version control. The continuous integration will spot this change, and will deploy the new version. I have to manually update-database (which should be automated). </p>
  
  <p>Can I skip out the generation of migration too, such that I can simply add the property age onto the code, and the continuous integration will generate this migration. Not sure if this is recommended. </p>