# Change user's email without verification

**URL:** https://meta.discourse.org/t/change-users-email-without-verification/66602
**Category:** Self-hosting
**Tags:** rails-console
**Created:** [July 21, 2017, 3:47pm UTC](https://meta.discourse.org/t/change-users-email-without-verification/66602 "2017-07-21T15:47:04Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [January 10, 2018, 3:14am UTC](https://meta.discourse.org/t/change-users-email-without-verification/66602/7 "2018-01-10T03:14:19Z")

</div>

There has been a change in the way emails are stored in the database.

The following commands should work:

```plaintext
cd /var/discourse
sudo ./launcher enter app
rails c

UserEmail.find_by(email: "oid@example.com").update(email: "new@example.com")

```

---

_[View the full topic](https://meta.discourse.org/t/change-users-email-without-verification/66602)._
