Fix guide. sample code syntax error.[ci skip]
Merge pull request #16038 from tbpgr/fix_guide_active_record_validations

Fix guide. sample code syntax error.[ci skip]