8a74e7d77f
Annotate: Better look in schema.rb, this reference should be always up to date. Hirb: To reactivate hirb, look in railscasts: http://railscasts.com/episodes/48-console-tricks-revised
9 lines
180 B
Ruby
9 lines
180 B
Ruby
class OrderComment < ActiveRecord::Base
|
|
|
|
belongs_to :order
|
|
belongs_to :user
|
|
|
|
validates_presence_of :order_id, :user_id, :text
|
|
validates_length_of :text, :minimum => 3
|
|
end
|
|
|