foodsoft/app/models/order_comment.rb
2009-08-15 17:24:08 +02:00

18 lines
339 B
Ruby

# == Schema Information
#
# Table name: order_comments
#
# id :integer not null, primary key
# order_id :integer
# user_id :integer
# text :text
# created_at :datetime
#
class OrderComment < ActiveRecord::Base
belongs_to :order
belongs_to :user
validates_presence_of :order_id, :user_id, :text
end