Skip to content

Commit 2b5851a

Browse files
authored
Merge pull request rails#49917 from fatkodima/avoid-recalculating-counter_cached_association_names
Avoid recalculating `CounterCache.counter_cached_association_names`
2 parents 8c82595 + e1cb3d0 commit 2b5851a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/counter_cache.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def counter_cache_column?(name) # :nodoc:
182182
_counter_cache_columns.include?(name)
183183
end
184184

185-
def load_schema # :nodoc:
185+
def load_schema! # :nodoc:
186186
super
187187

188188
association_names = _reflections.filter_map do |name, reflection|

0 commit comments

Comments
 (0)