# Convertir masivamente temas de una Categoría a Mensajes Privados de Grupo

**URL:** <https://meta.discourse.org/t/bulk-convert-topics-from-a-category-to-group-pms/218811>\
**Category:** Product Support\
**Tags:** rails-console\
**Created:** [19 Febrero, 2022 13:32 UTC](https://meta.discourse.org/t/bulk-convert-topics-from-a-category-to-group-pms/218811 "2022-02-19T13:32:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [19 Febrero, 2022 17:51 UTC](https://meta.discourse.org/t/bulk-convert-topics-from-a-category-to-group-pms/218811/2 "2022-02-19T17:51:14Z")

</div>

Eso podría funcionar. Además, si no lo sabes, puedes hacer algo como

```
 topics = Topic.where(category: 10)

  topics.update_all(archetype: xxx, topic_category: nil)

```

O algo así. Si sabías sobre update\_all, esto no es noticia.

---

_[View the full topic](https://meta.discourse.org/t/bulk-convert-topics-from-a-category-to-group-pms/218811)._
