diff options
-rw-r--r-- | app/models/user_contributed_projects.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/user_contributed_projects.rb b/app/models/user_contributed_projects.rb index 2965b956f3f..624d41e3526 100644 --- a/app/models/user_contributed_projects.rb +++ b/app/models/user_contributed_projects.rb @@ -43,6 +43,12 @@ class UserContributedProjects < ActiveRecord::Base @available_flag ||= ActiveRecord::Migrator.current_version >= REQUIRED_SCHEMA_VERSION # rubocop:disable Gitlab/PredicateMemoization end + # Flushes cached information about schema + def reset_column_information + @available_flag = nil + super + end + private def cached_exists?(project_id:, user_id:, &block) |