このコミットが含まれているのは:
2026-06-22 07:18:21 +09:00
コミット b8126eeea9
6個のファイルの変更81行の追加14行の削除
+1
ファイルの表示
@@ -7,6 +7,7 @@ class Post < ApplicationRecord
has_many :active_post_tags, -> { kept }, class_name: 'PostTag', inverse_of: :post
has_many :post_tags_with_discarded, -> { with_discarded }, class_name: 'PostTag'
has_many :tags, through: :active_post_tags
has_many :active_tags, -> { where(deprecated_at: nil) }, through: :active_post_tags, source: :tag
has_many :user_post_views, dependent: :delete_all
has_many :post_similarities, dependent: :delete_all