このコミットが含まれているのは:
2026-09-21 03:49:46 +09:00
コミット 3a5d79b5d7
2個のファイルの変更5行の追加2行の削除
+3
ファイルの表示
@@ -56,6 +56,9 @@ class Post < ApplicationRecord
has_many :post_tags, dependent: :destroy, inverse_of: :post
has_many :tags, through: :post_tags
has_many :active_tags, -> { where(tags: { discarded_at: nil }) },
through: :post_tags,
source: :tag
has_many :user_post_views, dependent: :delete_all
has_many :post_similarities, dependent: :delete_all