# Automatically transferring themes

**URL:** https://meta.discourse.org/t/automatically-transferring-themes/180272
**Category:** Support
**Created:** [February 18, 2021, 11:26pm UTC](https://meta.discourse.org/t/automatically-transferring-themes/180272 "2021-02-18T23:26:47Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 19, 2021, 12:08am UTC](https://meta.discourse.org/t/automatically-transferring-themes/180272/3 "2021-02-19T00:08:48Z")

</div>

This should do it, but you should make a backup first.

### get into rails

```plaintext
cd /var/discourse
./launcher enter app

```

#### do these commands

```plaintext
old_id=2
new_id=21
UserOption.where(theme_ids: [old_id]).update_all(theme_ids: [new_id])

```

---

_[View the full topic](https://meta.discourse.org/t/automatically-transferring-themes/180272)._
