mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 20:07:52 -05:00
6 lines
154 B
Ruby
6 lines
154 B
Ruby
class PostReply < ActiveRecord::Base
|
|
belongs_to :post
|
|
belongs_to :reply, class_name: 'Post'
|
|
|
|
validates_uniqueness_of :reply_id, scope: :post_id
|
|
end
|