mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 19:43:44 +08:00
8 lines
155 B
Ruby
8 lines
155 B
Ruby
class PostReply < ActiveRecord::Base
|
|
|
|
belongs_to :post
|
|
belongs_to :reply, class_name: 'Post'
|
|
|
|
validates_uniqueness_of :reply_id, scope: :post_id
|
|
end
|