title: There is already an object named in the database
body: <p>Update-Database failed from Package Manager Console.
  I've used Entity Framework 6.x and code-first approach.
  Error is</p>
  
  <p><strong>"There is already an object named 'AboutUs' in the database."</strong></p>
  
  <p>How can I solve this problem?</p>
  
  <pre><code>internal sealed class Configuration 
      : DbMigrationsConfiguration&lt;Jahan.Blog.Web.Mvc.Models.JahanBlogDbContext&gt;
  {
      public Configuration()
      {
          AutomaticMigrationsEnabled = true;
          AutomaticMigrationDataLossAllowed = false;
      }
  
      protected override void Seed(Jahan.Blog.Web.Mvc.Models.JahanBlogDbContext context)
      {
  
      }
  }
  </code></pre>
  
  <p>My DbContext is:</p>
  
  <pre><code>public class JahanBlogDbContext : IdentityDbContext&lt;User, Role, int, UserLogin, UserRole, UserClaim&gt;
  {
      public JahanBlogDbContext()
          : base("name=JahanBlogDbConnectionString")
      {
          Database.SetInitializer(new DropCreateDatabaseIfModelChanges&lt;JahanBlogDbContext&gt;());
      }
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          modelBuilder.Conventions.Remove&lt;PluralizingTableNameConvention&gt;();
          modelBuilder.Entity&lt;Comment&gt;().HasRequired(t =&gt; t.Article).WithMany(t =&gt; t.Comments).HasForeignKey(d =&gt; d.ArticleId).WillCascadeOnDelete(true);
          base.OnModelCreating(modelBuilder);
  
          modelBuilder.Entity&lt;User&gt;().ToTable("User");
          modelBuilder.Entity&lt;Role&gt;().ToTable("Role");
          modelBuilder.Entity&lt;UserRole&gt;().ToTable("UserRole");
          modelBuilder.Entity&lt;UserLogin&gt;().ToTable("UserLogin");
          modelBuilder.Entity&lt;UserClaim&gt;().ToTable("UserClaim");
      }
  
      public virtual DbSet&lt;Article&gt; Articles { get; set; }
      public virtual DbSet&lt;ArticleLike&gt; ArticleLikes { get; set; }
      public virtual DbSet&lt;ArticleTag&gt; ArticleTags { get; set; }
      public virtual DbSet&lt;AttachmentFile&gt; AttachmentFiles { get; set; }
      public virtual DbSet&lt;Comment&gt; Comments { get; set; }
      public virtual DbSet&lt;CommentLike&gt; CommentLikes { get; set; }
      public virtual DbSet&lt;CommentReply&gt; CommentReplies { get; set; }
      public virtual DbSet&lt;ContactUs&gt; ContactUs { get; set; }
      public virtual DbSet&lt;Project&gt; Projects { get; set; }
      public virtual DbSet&lt;ProjectState&gt; ProjectStates { get; set; }
      public virtual DbSet&lt;ProjectTag&gt; ProjectTags { get; set; }
      public virtual DbSet&lt;Rating&gt; Ratings { get; set; }
      public virtual DbSet&lt;Tag&gt; Tags { get; set; }
      public virtual DbSet&lt;AboutUs&gt; AboutUs { get; set; }
  }
  </code></pre>
  
  <p>Package Manage Console:</p>
  
  <pre><code>PM&gt; update-database -verbose -force
  Using StartUp project 'Jahan.Blog.Web.Mvc'.
  Using NuGet project 'Jahan.Blog.Web.Mvc'.
  Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
  Target database is: 'Jahan-Blog' (DataSource: (local), Provider: System.Data.SqlClient, Origin: Configuration).
  No pending explicit migrations.
  Applying automatic migration: 201410101740197_AutomaticMigration.
  CREATE TABLE [dbo].[AboutUs] (
      [Id] [int] NOT NULL IDENTITY,
      [Description] [nvarchar](max),
      [IsActive] [bit] NOT NULL,
      [CreatedDate] [datetime],
      [ModifiedDate] [datetime],
      CONSTRAINT [PK_dbo.AboutUs] PRIMARY KEY ([Id])
  )
  System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AboutUs' in the database.
     at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
     at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
     at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean&amp; dataReady)
     at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
     at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
     at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
     at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.&lt;NonQuery&gt;b__0(DbCommand t, DbCommandInterceptionContext`1 c)
     at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
     at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.NonQuery(DbCommand command, DbCommandInterceptionContext interceptionContext)
     at System.Data.Entity.Internal.InterceptableDbCommand.ExecuteNonQuery()
     at System.Data.Entity.Migrations.DbMigrator.ExecuteSql(DbTransaction transaction, MigrationStatement migrationStatement, DbInterceptionContext interceptionContext)
     at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.ExecuteSql(DbTransaction transaction, MigrationStatement migrationStatement, DbInterceptionContext interceptionContext)
     at System.Data.Entity.Migrations.DbMigrator.ExecuteStatementsInternal(IEnumerable`1 migrationStatements, DbTransaction transaction, DbInterceptionContext interceptionContext)
     at System.Data.Entity.Migrations.DbMigrator.ExecuteStatementsInternal(IEnumerable`1 migrationStatements, DbConnection connection)
     at System.Data.Entity.Migrations.DbMigrator.&lt;&gt;c__DisplayClass30.&lt;ExecuteStatements&gt;b__2e()
     at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.&lt;&gt;c__DisplayClass1.&lt;Execute&gt;b__0()
     at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
     at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Action operation)
     at System.Data.Entity.Migrations.DbMigrator.ExecuteStatements(IEnumerable`1 migrationStatements, DbTransaction existingTransaction)
     at System.Data.Entity.Migrations.DbMigrator.ExecuteStatements(IEnumerable`1 migrationStatements)
     at System.Data.Entity.Migrations.Infrastructure.MigratorBase.ExecuteStatements(IEnumerable`1 migrationStatements)
     at System.Data.Entity.Migrations.DbMigrator.ExecuteOperations(String migrationId, XDocument targetModel, IEnumerable`1 operations, IEnumerable`1 systemOperations, Boolean downgrading, Boolean auto)
     at System.Data.Entity.Migrations.DbMigrator.AutoMigrate(String migrationId, VersionedModel sourceModel, VersionedModel targetModel, Boolean downgrading)
     at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.AutoMigrate(String migrationId, VersionedModel sourceModel, VersionedModel targetModel, Boolean downgrading)
     at System.Data.Entity.Migrations.DbMigrator.Upgrade(IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
     at System.Data.Entity.Migrations.Infrastructure.MigratorLoggingDecorator.Upgrade(IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
     at System.Data.Entity.Migrations.DbMigrator.UpdateInternal(String targetMigration)
     at System.Data.Entity.Migrations.DbMigrator.&lt;&gt;c__DisplayClassc.&lt;Update&gt;b__b()
     at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
     at System.Data.Entity.Migrations.Infrastructure.MigratorBase.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
     at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
     at System.Data.Entity.Migrations.Infrastructure.MigratorBase.Update(String targetMigration)
     at System.Data.Entity.Migrations.Design.ToolingFacade.UpdateRunner.Run()
     at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
     at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
     at System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner runner)
     at System.Data.Entity.Migrations.Design.ToolingFacade.Update(String targetMigration, Boolean force)
     at System.Data.Entity.Migrations.UpdateDatabaseCommand.&lt;&gt;c__DisplayClass2.&lt;.ctor&gt;b__0()
     at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
  ClientConnectionId:88b66414-8776-45cd-a211-e81b2711c94b
  There is already an object named 'AboutUs' in the database.
  PM&gt; 
  </code></pre>