# Rails command to mass promote users to TL2?

**URL:** <https://meta.discourse.org/t/rails-command-to-mass-promote-users-to-tl2/149238>\
**Category:** Development\
**Tags:** rails-console\
**Created:** [April 25, 2020, 8:07am UTC](https://meta.discourse.org/t/rails-command-to-mass-promote-users-to-tl2/149238 "2020-04-25T08:07:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [April 25, 2020, 9:34am UTC](https://meta.discourse.org/t/rails-command-to-mass-promote-users-to-tl2/149238/3 "2020-04-25T09:34:42Z")

</div>

> [@Canapin](#):
>
> users = User.where(‘admin = false’) users.update\_all(trust\_level: 2)

This query will change all moderators to trust level 2 as well.

I’m not sure @Queth really wants to do that.

---

_[View the full topic](https://meta.discourse.org/t/rails-command-to-mass-promote-users-to-tl2/149238)._
