Upgrade on Jessie from 7.12.2 to 7.13 fails too

Very similar to this topic:

Everything seems to work but the project homepages.

I use the omnibus package on Debian Jessie and wanted to upgrade vom 7.12.2 to 7.13 but I get another error (see at the end of the post). I can reproduce the error by calling sudo gitlab-rake db:migrate. Here are the last few lines of gitlab-rake db:migrate:status:

   up     20150516060434  Add note events to web hooks
   up     20150529111607  Add user oauth applications to application settings
   up     20150529150354  Add after sign out path for application settings
  down    20150609141121  Add session expire delay for application settings
   up     20150610065936  Add dashboard to users
  down    20150620233230  Add default otp required for login value
  down    20150713160110  Add project view to users
  down    20150717130904  Add commits count to project

This is the error:

== 20150609141121 AddSessionExpireDelayForApplicationSettings: migrating ======
-- add_column(:application_settings, :session_expire_delay, :integer, {:default=>10080, :null=>false})
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

PG::DuplicateColumn: ERROR:  column "session_expire_delay" of relation "application_settings" already exists
: ALTER TABLE "application_settings" ADD COLUMN "session_expire_delay" integer DEFAULT 10080 NOT NULL/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.11/lib/active_record/connection_adapters/postgresql/database_statements.rb:128:in `async_exec'