Deprecate `scope_chain`
#27851

tenderlove wants to merge tenderlove:scope-chain into rails:master

We do not currently have an analysis of these two commits