@egilburg that is already being done here https://github.com/neerajdotname/rails/blob/c53876b5f4dda9dd55996c38813cf607e42e9995/activerecord/test/cases/associations/inverse_associations_test.rb#L390-L402