clarion/app/models/feedback.rb

6 lines
163 B
Ruby
Raw Normal View History

2017-10-22 22:38:48 +03:00
class Feedback < ActiveRecord::Base
belongs_to :feedback_receiving, polymorphic: true
validates :rating, presence: true, inclusion: {in: [2, 3, 4, 5 ,6]}
end