Class: Rate
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Rate
- Defined in:
- app/models/rate.rb
Overview
Any rating feature should be stored in here
Currently only used by Review model
Review has 5 kind of rating
1. Overall rating, which is stored on reviews.rating column
2. Food rating, stored in here, relationship Dimension, which Dimension.name == 'food'
3. Ambience rating, stored in here, relationship Dimension, which Dimension.name == 'ambience'
4. Service rating, stored in here, relationship Dimension, which Dimension.name == 'service'
5. Value rating, stored in here, relationship Dimension, which Dimension.name == 'value'