# Manipulating custom user fields from the Rails console

**URL:** <https://meta.discourse.org/t/manipulating-custom-user-fields-from-the-rails-console/218613>\
**Category:** Development\
**Tags:** rails-console, user-custom-fields\
**Created:** [February 17, 2022, 9:12pm UTC](https://meta.discourse.org/t/manipulating-custom-user-fields-from-the-rails-console/218613 "2022-02-17T21:12:08Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [February 18, 2022, 12:19pm UTC](https://meta.discourse.org/t/manipulating-custom-user-fields-from-the-rails-console/218613/5 "2022-02-18T12:19:04Z")

</div>

> [@nathank](#):
>
> ` u.custom_fields = {"user_field_16" => "Nil"}`

By doing this, you’re replacing everything in the `u.custom_fields` hash with `{"user_field_16" => nil}`(note the nil without quotes)

---

_[View the full topic](https://meta.discourse.org/t/manipulating-custom-user-fields-from-the-rails-console/218613)._
