2009-01-29 01:57:51 +01:00
|
|
|
# == Schema Information
|
2009-02-02 16:35:43 +01:00
|
|
|
# Schema version: 20090119155930
|
2009-01-29 01:57:51 +01:00
|
|
|
#
|
|
|
|
# Table name: order_comments
|
|
|
|
#
|
2009-02-02 16:35:43 +01:00
|
|
|
# id :integer not null, primary key
|
|
|
|
# order_id :integer
|
|
|
|
# user_id :integer
|
2009-01-29 01:57:51 +01:00
|
|
|
# text :text
|
|
|
|
# created_at :datetime
|
|
|
|
#
|
|
|
|
|
|
|
|
class OrderComment < ActiveRecord::Base
|
|
|
|
|
|
|
|
belongs_to :order
|
|
|
|
belongs_to :user
|
|
|
|
|
|
|
|
validates_presence_of :order_id, :user_id, :text
|
|
|
|
end
|