avoid hard-coded string for the Active Record error by using yaml file data