post_tags の論理削除と履歴管理を廃止 (#411) #417

マージ済み
みてるぞ が 8 個のコミットを feature/411 から main へマージ 2026-09-21 06:02:42 +09:00
コミット 4fd95b74f1 の変更だけを表示しています - すべてのコミットを表示
+1 -1
ファイルの表示
@@ -56,7 +56,7 @@ 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 }) },
has_many :active_tags, -> { where(tags: { deprecated_at: nil }) },
through: :post_tags,
source: :tag