I have a custom https://github.com/rails/rails/blob/v5.2.1/activerecord/lib/active_record/associations/collection_association.rb#L278-L283 like this
def add_to_target(record, skip_callbacks = false, &block)
puts "#" * 60
puts
p association_scope
p association_scope.class
puts
TracePoint.new(:call, :c_call){ |tp|