|
|
@@ -165,7 +165,7 @@ class Tag < ApplicationRecord |
|
|
tag_name.update!(canonical: target_tag.tag_name) |
|
|
tag_name.update!(canonical: target_tag.tag_name) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
# 再集計 |
|
|
|
|
|
|
|
|
# 投稿件数を再集計 |
|
|
target_tag.update_columns(post_count: PostTag.kept.where(tag: target_tag).count) |
|
|
target_tag.update_columns(post_count: PostTag.kept.where(tag: target_tag).count) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
|