From c816e76820c9a90bb9b13520db35f02b495257a0 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Wed, 11 Sep 2019 11:26:17 -0700 Subject: [PATCH] Ignore support_bot column in users table https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32554 removed the support_bot column, but nodes were not told to ignore this column. As a result, after the post-deploy migration ran, nodes attempted to use this column, causing 500 errors. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/67295 --- app/models/user.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index 9ca01715578..299fe02a6d5 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -55,6 +55,9 @@ class User < ApplicationRecord BLOCKED_MESSAGE = "Your account has been blocked. Please contact your GitLab " \ "administrator if you think this is an error." + # Removed in GitLab 12.3. Keep until after 2019-09-22. + self.ignored_columns += %i[support_bot] + # Override Devise::Models::Trackable#update_tracked_fields! # to limit database writes to at most once every hour # rubocop: disable CodeReuse/ServiceClass -- GitLab