# Automatic Dark Mode

**URL:** <https://meta.discourse.org/t/automatic-dark-mode/278606>\
**Category:** Support\
**Tags:** auto-dark\
**Created:** [September 11, 2023, 8:36pm UTC](https://meta.discourse.org/t/automatic-dark-mode/278606 "2023-09-11T20:36:45Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![kynic](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@kynic](https://meta.discourse.org/u/kynic)\
**Post date:** [September 13, 2023, 3:28pm UTC](https://meta.discourse.org/t/automatic-dark-mode/278606/22 "2023-09-13T15:28:06Z")

</div>

Okay I did this:

`cd /var/discourse`

`./launcher enter app`

`rails c`

Then

```plaintext
UserOption.where.not(dark_scheme_id: nil).find_each do |uo|
    uo.update(dark_scheme_id: nil)
end

```

It worked!

Now when I run the script of [data explorer](https://meta.discourse.org/t/32566?silent=true) there are no results I also confirmed by opening one user preferences \> interface to see if it is checked and yes it is now checked.

Thank you for your help 🥰

---

_[View the full topic](https://meta.discourse.org/t/automatic-dark-mode/278606)._
