# How to update Watched First Post Categories for all users?

**URL:** https://meta.discourse.org/t/how-to-update-watched-first-post-categories-for-all-users/125182
**Category:** Support
**Created:** [8월 8, 2019, 1:09오전 UTC](https://meta.discourse.org/t/how-to-update-watched-first-post-categories-for-all-users/125182 "2019-08-08T01:09:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![BaronGrivet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barongrivet/32/152142_2.png) [@BaronGrivet](https://meta.discourse.org/u/BaronGrivet)
#### Post date: [8월 8, 2019, 1:09오전 UTC](https://meta.discourse.org/t/how-to-update-watched-first-post-categories-for-all-users/125182/1 "2019-08-08T01:09:51Z")

</div>

I’ve been looking at this topic as a way of updating the “Watching First Post” field for all the users:

> [@Edit a user preference for everyone or a subset of users](https://meta.discourse.org/t/edit-a-user-setting-for-all-discourse-users/25162):
>
> bookmark This guide explains how to edit a user preference for everyone or a subset of users in Discourse. person_raising_hand Required user level: System Administrator warning Console access is required. If you need to update the user preference for all of your users or a large subset of users, you can do so via the rails console. Summary In this guide, you’ll learn: How to access the Rails console for making bulk changes Examples of modifying user preferences How to identify se…

However I can’t work out which model/ column to change. This does not work:

```
UserOption.update_all(watched_first_post_category_ids: '[5,6,7,8]')

```

As `watched_first_post_category_ids` does not exist in the `user_options` table.

I’ve had a [poke around in the Discourse Github code](https://github.com/discourse/discourse/search?q=watched_first_post_category_ids&unscoped_q=watched_first_post_category_ids) but I’m new to Rails & not sure what I should be looking for.

Could someone please give me the correct Rails Console command to change the “Watching First Post” field for all users?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [8월 8, 2019, 4:48오전 UTC](https://meta.discourse.org/t/how-to-update-watched-first-post-categories-for-all-users/125182/2 "2019-08-08T04:48:04Z")

</div>

@tshenry can you advise?

---

<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: [8월 8, 2019, 5:11오전 UTC](https://meta.discourse.org/t/how-to-update-watched-first-post-categories-for-all-users/125182/3 "2019-08-08T05:11:51Z")

</div>

I’m on my phone and can’t test but I think just remove the quotes from around the array.

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [8월 8, 2019, 6:43오전 UTC](https://meta.discourse.org/t/how-to-update-watched-first-post-categories-for-all-users/125182/4 "2019-08-08T06:43:48Z")

</div>

This should be what you are looking for 🙂

> [@(Obsolete) Set category tracking level defaults historically](https://meta.discourse.org/t/how-do-i-set-category-tracking-level-defaults-historically/53165):
>
> warning Following the release of Discourse v2.4.0.beta7 (or if you have [this commit](https://github.com/discourse/discourse/commit/b2f682f35eba0cc3f09588356ecf8d1dd824542f)), admins now have the option to set the category tracking levels of all existing users when setting the default category tracking levels in their site settings: Add a category to one of the following site settings, then select the green checkbox button. A modal window will pop up with the following options: play_button The old way using the console

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [8월 8, 2019, 7:36오전 UTC](https://meta.discourse.org/t/how-to-update-watched-first-post-categories-for-all-users/125182/5 "2019-08-08T07:36:12Z")

</div>


