Add AR validation for Feedback rating

This commit is contained in:
gregoirenovel 2018-08-27 17:14:58 +02:00
parent 095ed82ce7
commit 66c5f080cc

View file

@ -6,4 +6,6 @@ class Feedback < ApplicationRecord
neutral: 'neutral',
unhappy: 'unhappy'
}
validates :rating, presence: true
end