Ruby on Rails: Is it better to validate in the model or the database? Ruby on Rails: Is it better to validate in the model or the database? database database