Related to https://github.com/rails/rails/pull/14440/files#r10819432