2012-03-01 23:25:55 +00:00
|
|
|
class Comment < ActiveRecord::Base
|
|
|
|
|
|
|
|
validates :body, :presence => true
|
2012-11-19 21:35:52 +00:00
|
|
|
validates :asciicast, :presence => true
|
|
|
|
validates :user, :presence => true
|
2012-03-01 23:25:55 +00:00
|
|
|
|
|
|
|
belongs_to :user
|
2012-04-09 14:46:08 +00:00
|
|
|
belongs_to :asciicast, :counter_cache => true
|
2012-03-01 23:25:55 +00:00
|
|
|
|
|
|
|
end
|