Ensure that `delete_all` on collection proxy returns affected count
#34609

kamipo wants to merge kamipo:delete_all_on_collection_proxy into rails:master

We do not currently have an analysis of these two commits