title: EF migrations not updating the database automatically
body: <p>I have EF migrations enabled and want to update an existing database running in azure. When I run the application I get the following exception:</p>
  
  <blockquote>
    <p>An exception of type 'System.InvalidOperationException' occurred in
    EntityFramework.dll but was not handled in user code</p>
    
    <p>Additional information: The model backing the 'MyContext' context has
    changed since the database was created. Consider using Code First
    Migrations to update the database (<a href="http://go.microsoft.com/fwlink/?LinkId=238269" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=238269</a>).</p>
  </blockquote>
  
  <p>However I have migrations enabled.</p>
  
  <pre><code>Database.SetInitializer(new MigrateDatabaseToLatestVersion&lt;MyContext, Configuration&gt;());
  </code></pre>
  
  <p>And</p>
  
  <pre><code>internal sealed class Configuration : DbMigrationsConfiguration&lt;MyContext&gt;
  {
      public Configuration()
      {
           AutomaticMigrationsEnabled = false;//have also tried true
      }
  }
  </code></pre>
  
  <p>Up until this latest commit everything has worked automatically as expected and i haven't changed the initialization code (only added new migrations).</p>
  
  <p>If i download the database and run the app I get the same result. However if I manually run <code>Update-Database</code> everything works as expected.</p>
  
  <p>Is there a way to get this to run via code as I cant run Update-Database inside Azure.</p>