# How to move all topics of 1 category to new tag

**URL:** <https://meta.discourse.org/t/how-to-move-all-topics-of-1-category-to-new-tag/122141>\
**Category:** Product Support\
**Created:** [5 juli 2019 om 02:59 UTC](https://meta.discourse.org/t/how-to-move-all-topics-of-1-category-to-new-tag/122141 "2019-07-05T02:59:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)\
**Post date:** [6 juli 2019 om 23:41 UTC](https://meta.discourse.org/t/how-to-move-all-topics-of-1-category-to-new-tag/122141/5 "2019-07-06T23:41:50Z")

</div>

Thank you! i moved subcategory come back parent category success.  
I wanna insert and update all topics have a keyword to a tag, i know a little console but not effect, can you fix console same:

> Topic.where(“quận 1 dt”).update\_all(tags=“quận-1”)

> rake posts:update\_tag[“quận 1 dt”,“quận-1”]

I wanna do this action by consale, because my discourse have thousand topic to replace. What console to do this feature? Thank you!

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/6/76153ccf9020b6b730adc7264526722b20cfb96d.png)

Sorry so much! Im not a developer and don’t follow rails console professional, i will try study more. Thank you so much!

---

_[View the full topic](https://meta.discourse.org/t/how-to-move-all-topics-of-1-category-to-new-tag/122141)._
