Votes

If we are validating uniqueness for user and rating, it is a good idea to place a uniqueness index on the database for those fields. http://stackoverflow.com/a/1449466/2675670