• pbair's avatar
    Implement uncached behavior for multiple databases · 9f4134ed
    pbair authored
    Add a Gitlab::Database.all_uncached method which implements
    ActiveRecord::Base.uncached behavior that works with multiple
    databases.
    
    The new method wraps the given block in an #uncached call for each base
    model, so that the behavior will be correct on any database connection.
    9f4134ed
database_spec.rb 12.8 KB