2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/app/models/post_reply.rb

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