title: EF Code First - Multiple Application Versions Sharing A Database
body: <p>We have an application developed using code first in EF6. This is running quite happily on our live infrastructure.</p>
  
  <p>I have recently made some changes which required some schema alterations and I've generated the appropriate migrations.</p>
  
  <p>Since the application was originally deployed our release process for the live environment has changed and all applications are deployed to a Prelive area so we can validate interaction with the other applications/services and run tests before the application files are released to their live location.</p>
  
  <p>The problem is that the migrations will alter the database schema when the application is run in Prelive and the live version of the application will choke on its model compatibility check.</p>
  
  <p>How have other people approached this issue?  </p>
  
  <p>Is there any way of safely running multiple versions of a code first application against the same database?</p>
  
  <p>If I can disable the model checking, will the migrations still run when the application first starts or will I have to go back to generating sql change scripts and running them manually?</p>