# Completely disable mailing list mode?

**URL:** <https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334>\
**Category:** Feature\
**Created:** [December 31, 2015, 7:13pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334 "2015-12-31T19:13:53Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![joco](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@joco](https://meta.discourse.org/u/joco)\
**Post date:** [January 2, 2017, 3:40pm UTC](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334/19 "2017-01-02T15:40:21Z")

</div>

> [@techAPJ](#):
>
> User.update\_all(mailing\_list\_mode: false)

I am trying to update all my users profiles to turn off mailing list mode, however, I get an error when issuing the rails command:

```
./launcher enter app
rails c
User.update_all(mailing_list_mode: false)

```

The error is:

```
ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column "mailing_list_mode" of relation "users" does not exist
LINE 1: UPDATE "users" SET "mailing_list_mode" = 'f'
                       ^
: UPDATE "users" SET "mailing_list_mode" = 'f'
from /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-mini-profiler-0.10.1/lib/patches/db/pg.rb:90:in `exec'

```

---

_[View the full topic](https://meta.discourse.org/t/completely-disable-mailing-list-mode/37334)._
