Files
btrc-hub/backend/app/models/post_similarity.rb
2026-01-22 23:30:08 +09:00

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