I have published a blog on the Rails 7.1 adds ActiveRecord::Base::normalizes API for attribute values.