feat: 別名を検索に展開(#20) (#243)

#20

#20 テスト・ケースのみ追記

#20

Co-authored-by: miteruzo <miteruzo@naver.com>
Reviewed-on: #243
このコミットはPull リクエスト #243 でマージされました.
このコミットが含まれているのは:
2026-01-28 23:47:56 +09:00
コミット 200d457d22
8個のファイルの変更168行の追加39行の削除
+4 -2
ファイルの表示
@@ -8,8 +8,10 @@ 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 :user_post_views, dependent: :destroy
has_many :post_similarities
has_many :user_post_views, dependent: :delete_all
has_many :post_similarities, dependent: :delete_all
has_one_attached :thumbnail
before_validation :normalise_url