DB migrate from scratch is broken in test env
be rake db:migrate:reset RAILS_ENV=test
...
== 20140502125220 MigrateRepoSize: migrating ==================================
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::UndefinedColumn: ERROR: column projects.pending_delete does not exist
LINE 1: SELECT "projects".* FROM "projects" WHERE "projects"."pendi...
^
: SELECT "projects".* FROM "projects" WHERE "projects"."pending_delete" = 'f' ORDER BY "projects"."id" ASC LIMIT 500/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `async_exec'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `block in exec_no_cache'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activesupport-4.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `exec_no_cache'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:584:in `execute_and_clear'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in `exec_query'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/query_cache.rb:70:in `select_all'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/querying.rb:39:in `find_by_sql'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/relation.rb:639:in `exec_queries'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/relation.rb:515:in `load'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/relation.rb:243:in `to_a'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/relation/batches.rb:117:in `find_in_batches'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/relation/batches.rb:50:in `find_each'
/Users/dzaporozhets/.rvm/gems/ruby-2.1.8/gems/activerecord-4.2.6/lib/active_record/querying.rb:9:in `find_each'
/Users/dzaporozhets/Projects/gitlab-development-kit/gitlab/db/migrate/20140502125220_migrate_repo_size.rb:4:in `up'
/Us
Another one after #14694 (closed).