area1707 / grace-shopper

3 stars 0 forks source link

Data Validation - Reviews #35

Open erinkshaw opened 7 years ago

erinkshaw commented 7 years ago

All reviews must belong to a product All reviews must belong to a user All reviews must be at least X characters

Implementation: Create association with review and product, and review and user, require the review content value be a certain length

alicec15 commented 7 years ago

associations are done - the max characters limit might be better done in the front end rather than in the backend to give users a warning for character limit