This method is only available on newer versions.
The first available version (v7.2.3) is shown here.
has_active_cached_counter?()
public
Returns whether this association has a counter cache and its column values
were backfilled (and so it is used internally by methods like
size/any?/etc).