Commit 4418066e authored by Andreas Brandl's avatar Andreas Brandl

Flush cached information about schema.

This is only relevant for migration specs. See
spec/support/migrations_helpers.rb.
parent 375a5c9f
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment