In the database, query __MigrationHistory table and copy [ContextKey].
Paste it into the DbMigrationsConfiguration ConextKey as below
internal sealed class DbConfiguration: DbMigrationsConfiguration<DbContext>
{
public DbConfiguration()
{
AutomaticMigrationsEnabled = true;
ContextKey = "<contextKey from above>";
}