Deduplicate various Active Record schema cache structures
#35891

casperisfine wants to merge Shopify:schema-cache-deduplication into rails:master

We do not currently have an analysis of these two commits