discourse/app/models/post_reply.rb

7 lines
154 B
Ruby
Raw Normal View History

2013-02-05 13:16:51 -06:00
class PostReply < ActiveRecord::Base
belongs_to :post
belongs_to :reply, class_name: 'Post'
validates_uniqueness_of :reply_id, scope: :post_id
end