2019-01-13 07:05:54 +01:00
|
|
|
class OrderComment < ApplicationRecord
|
2011-05-07 21:55:24 +02:00
|
|
|
belongs_to :order
|
|
|
|
belongs_to :user
|
|
|
|
|
2023-05-12 13:01:12 +02:00
|
|
|
validates :order_id, :user_id, :text, presence: true
|
|
|
|
validates :text, length: { minimum: 3 }
|
2011-05-07 21:55:24 +02:00
|
|
|
end
|