このコミットが含まれているのは:
2026-06-22 07:57:17 +09:00
コミット d2e69b72da
12個のファイルの変更301行の追加10行の削除
+2 -1
ファイルの表示
@@ -7,7 +7,8 @@ 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 :active_tags, -> { where(tags: { deprecated_at: nil }) },
through: :active_post_tags, source: :tag
has_many :user_post_views, dependent: :delete_all
has_many :post_similarities, dependent: :delete_all