Make EF4.3 Code First Migrations ignore pending migrations
I have a local instance of a database that I recently created using DbContext.Database.Create() , so the __MigrationHistory table exists with an InitalCreate entry that matches the code at the moment. Some code-based migrations exist in the Migrations folder, however. These will be run in our development and staging environments to bring those databases in line with the code. I don't need to apply them locally, however, since I created the database using the current code. I now need to make a change to the model and create the corresponding migration. But when I run Add-Migration TestMigration