Remove all code deprecated in Rails 5.2
#34954

rafaelfranca wants to merge rm-remove-5.2-deprecations into master

We do not currently have an analysis of these two commits