foodsoft/app/models/order_comment.rb

9 lines
178 B
Ruby
Raw Normal View History

class OrderComment < ApplicationRecord
belongs_to :order
belongs_to :user
validates_presence_of :order_id, :user_id, :text
2011-06-19 20:47:27 +02:00
validates_length_of :text, :minimum => 3
end