foodsoft/app/models/order_comment.rb
2021-03-02 09:12:19 +01:00

7 lines
177 B
Ruby

class OrderComment < ApplicationRecord
belongs_to :order
belongs_to :user
validates_presence_of :order_id, :user_id, :text
validates_length_of :text, :minimum => 3
end