title: EF Code First Migrations Not Seeding Data When Deployed To Production
body: <p>I have an MVC 5 application set up with code first migrations. On my local machine I am able to run the following commands and the database gets updated:</p>
  
  <pre><code>add-migration SomeMigration
  update-database
  </code></pre>
  
  <p>I have deployed my application through VS using the File System option as its being deployed to a local server. The deployment publishes successfully - no errors. </p>
  
  <p>When i navigate to the site I can see tables are created using SQL Server Managment Studio, but no seed data is applied? Below is my seed class?</p>
  
  <pre><code>  namespace MyApp.Migrations
    {
  
       internal sealed class Configuration :   
       DbMigrationsConfiguration&lt;ApplicationDbContext&gt;
      {
          public Configuration()
          {
              AutomaticMigrationsEnabled = false;
              MigrationsDirectory = @"Persistence\Migrations";
          }
  
          protected override void Seed(ApplicationDbContext context)
          {
              // Seed stuff
  
          }
  
      }
  }
  </code></pre>
  
  <p>How do I get it apply the seed data and when I make changes to the Models on my local machine and redeploy I get the <code>database context has changed. Please consider using code first migration</code> error?</p>