Rake abortion when upgrading from 6.2.4 to 7.13.2

I was trying to upgrade an existing gitlab server from version 6.2 to 7.13.2 following the instruction on https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/6.x-or-7.x-to-7.13.md.
I followed the instruction with no problem until step 10 to check the gitlab environment.
Rake was aborted without printing out Gitlab information.
(command: sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)
The error log is shown below.
I could not recognize the error message “NoMethodError: undefined method `archived=’ for #Project:0x007fc909666320” or find any useful information about it online.

The gitlab server uses relative url. The configuration files are mostly kept in default except for hostnames and etc.

Great thanks for your help!

error msg from sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production

System information

System:	Ubuntu 14.04

Current User:	git

Using RVM:	no

Ruby Version:	2.1.6p336

Gem Version:	2.2.3

Bundler Version:1.10.6

Rake Version:	10.4.2

Sidekiq Version:3.3.0

** Invoke gitlab:env:info (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:env:info
rake aborted!
NoMethodError: undefined method `archived=' for #<Project:0x007fc909666320>
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activemodel-4.1.11/lib/active_model/attribute_methods.rb:435:in `method_missing'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.11/lib/active_record/attribute_methods.rb:213:in `method_missing'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/default_value_for-3.0.0/lib/default_value_for.rb:168:in `block in set_default_values'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/default_value_for-3.0.0/lib/default_value_for.rb:152:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/default_value_for-3.0.0/lib/default_value_for.rb:152:in `set_default_values'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/callbacks.rb:429:in `block in make_lambda'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/callbacks.rb:224:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/callbacks.rb:224:in `block in halting_and_conditional'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/callbacks.rb:503:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/callbacks.rb:503:in `block in call'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/callbacks.rb:503:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/callbacks.rb:503:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.11/lib/active_support/callbacks.rb:86:in `run_callbacks'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.11/lib/active_record/core.rb:198:in `initialize'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/actionpack-4.1.11/lib/action_dispatch/routing/url_for.rb:104:in `initialize'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/enumerize-0.7.0/lib/enumerize/base.rb:48:in `initialize'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/default_value_for-3.0.0/lib/default_value_for.rb:142:in `initialize'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:470:in `initialize'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.11/lib/active_record/inheritance.rb:30:in `new'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.11/lib/active_record/inheritance.rb:30:in `new'
/home/git/gitlab/lib/tasks/gitlab/info.rake:33:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/bin/rake:23:in `load'
/home/git/gitlab/vendor/bundle/ruby/2.1.0/bin/rake:23:in `<main>'
Tasks: TOP => gitlab:env:info