Initial commit to the repo
[kwestie.git] / app / models / comment.rb
blob3a74a9e55a6e8a2ba8d329e23f6174ca84c27f41
1 class Comment < ActiveRecord::Base
2   usesguid
4   belongs_to :issue
6   validates_presence_of :description
8   validates_associated :issue
10 #  has_many :attachments, :class_name => "CommentAttachment", :foreign_key => "comment_id", :dependent => :destroy
12   belongs_to :author, :class_name => "User", :foreign_key => "created_by"
13 end