# For hosted sites, newly added General category. How can one change all topics in one category to General category?

**URL:** <https://meta.discourse.org/t/for-hosted-sites-newly-added-general-category-how-can-one-change-all-topics-in-one-category-to-general-category/237563>\
**Category:** Product Support\
**Created:** [August 30, 2022, 9:18am UTC](https://meta.discourse.org/t/for-hosted-sites-newly-added-general-category-how-can-one-change-all-topics-in-one-category-to-general-category/237563 "2022-08-30T09:18:08Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [August 30, 2022, 12:11pm UTC](https://meta.discourse.org/t/for-hosted-sites-newly-added-general-category-how-can-one-change-all-topics-in-one-category-to-general-category/237563/9 "2022-08-30T12:11:48Z")

</div>

> [@EricGT](#):
>
> Hopefully you don’t have thousands.

If you do, you’ll want this to be done at the console.

Something like

```
  Topic.where("category.id=null").update_all(category=123)

```

---

_[View the full topic](https://meta.discourse.org/t/for-hosted-sites-newly-added-general-category-how-can-one-change-all-topics-in-one-category-to-general-category/237563)._
