f6de272f55
#228 #228 #228 Co-authored-by: miteruzo <miteruzo@naver.com> Reviewed-on: #232
7 lines
158 B
Ruby
7 lines
158 B
Ruby
class PostSimilarity < ApplicationRecord
|
|
self.primary_key = :post_id, :target_post_id
|
|
|
|
belongs_to :post
|
|
belongs_to :target_post, class_name: 'Post'
|
|
end
|