Skip to content

Commit

Permalink
Avoid recalculating CounterCache.counter_cached_association_names
Browse files Browse the repository at this point in the history
  • Loading branch information
fatkodima committed Nov 4, 2023
1 parent 8c82595 commit e1cb3d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/counter_cache.rb
Expand Up @@ -182,7 +182,7 @@ def counter_cache_column?(name) # :nodoc:
_counter_cache_columns.include?(name)
end

def load_schema # :nodoc:
def load_schema! # :nodoc:
super

association_names = _reflections.filter_map do |name, reflection|
Expand Down

0 comments on commit e1cb3d0

Please sign in to comment.