demarches-normaliennes/app/models/feedback.rb
2018-08-28 10:36:36 +02:00

11 lines
189 B
Ruby

class Feedback < ApplicationRecord
belongs_to :user
enum rating: {
happy: 'happy',
neutral: 'neutral',
unhappy: 'unhappy'
}
validates :rating, presence: true
end