Add AR validation for Feedback rating
This commit is contained in:
parent
095ed82ce7
commit
66c5f080cc
1 changed files with 2 additions and 0 deletions
|
@ -6,4 +6,6 @@ class Feedback < ApplicationRecord
|
|||
neutral: 'neutral',
|
||||
unhappy: 'unhappy'
|
||||
}
|
||||
|
||||
validates :rating, presence: true
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue