# Moved topics to new category via ruby console, topic counts wrong on old category

**URL:** https://meta.discourse.org/t/moved-topics-to-new-category-via-ruby-console-topic-counts-wrong-on-old-category/78758
**Category:** Support
**Created:** [23.Январь.2018 13:40:51 UTC](https://meta.discourse.org/t/moved-topics-to-new-category-via-ruby-console-topic-counts-wrong-on-old-category/78758 "2018-01-23T13:40:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jerdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerdog/32/122843_2.png) [@jerdog](https://meta.discourse.org/u/jerdog)
#### Post date: [23.Январь.2018 13:40:51 UTC](https://meta.discourse.org/t/moved-topics-to-new-category-via-ruby-console-topic-counts-wrong-on-old-category/78758/1 "2018-01-23T13:40:51Z")

</div>

I did a mass move yesterday via the ruby console like was mentioned here ([Bulk move many topics from one category to another - #2](https://meta.discourse.org/t/bulk-move-many-topics-from-one-category-to-another/38704/2)) and it worked - however topic counts didn’t update. I have 0 topics in the old category, but it still says the old number.

For kicks and grins I did `launcher rebuild app` but that didn’t reset the counts.

Anything I am missing here? Is there a process that I should have kicked off to re-index?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [23.Январь.2018 13:50:45 UTC](https://meta.discourse.org/t/moved-topics-to-new-category-via-ruby-console-topic-counts-wrong-on-old-category/78758/2 "2018-01-23T13:50:45Z")

</div>

Duplicate of [Force recount of topics in category after moving them](https://meta.discourse.org/t/force-recount-of-topics-in-category-after-moving-them/73026)

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [23.Январь.2018 13:53:57 UTC](https://meta.discourse.org/t/moved-topics-to-new-category-via-ruby-console-topic-counts-wrong-on-old-category/78758/3 "2018-01-23T13:53:57Z")

</div>


