2018-08-08 17:37:41 +02:00
|
|
|
class Feedback < ApplicationRecord
|
|
|
|
belongs_to :user
|
2018-08-27 12:59:22 +02:00
|
|
|
|
|
|
|
enum rating: {
|
|
|
|
happy: 'happy',
|
|
|
|
neutral: 'neutral',
|
|
|
|
unhappy: 'unhappy'
|
|
|
|
}
|
2018-08-27 17:14:58 +02:00
|
|
|
|
|
|
|
validates :rating, presence: true
|
2018-08-08 17:37:41 +02:00
|
|
|
end
|