The problem I encountered when upgrading from gitlab-ce-8.4.5 to 8.13.4, prompted ERROR: column issues.deleted_at does not exist
==> /var/log/gitlab/gitlab-rails/production.log <== Completed 500 Internal Server Error in 164ms (ActiveRecord: 8.4ms)
ActionView::Template::Error (PG::UndefinedColumn: ERROR: column issues.deleted_at does not exist
LINE 1: SELECT COUNT() FROM "issues" WHERE "issues"."deleted_at" IS...
^
: SELECT COUNT() FROM "issues" WHERE "issues"."deleted_at" IS NULL):
14: %p
15: Issues
16: %span.light.pull-right
17: = number_with_delimiter(Issue.count)
18: %p
19: Merge Requests
20: %span.light.pull-right
app/views/admin/dashboard/index.html.haml:17:in _app_views_admin_dashboard_index_html_haml__3987411871993327501_70160403943120' lib/gitlab/request_profiler/middleware.rb:15:in
call'
lib/gitlab/middleware/go.rb:16:in `call'