# Automatically transferring themes… question

**URL:** https://meta.discourse.org/t/automatically-transferring-themes-question/406271
**Category:** Support
**Created:** [June 27, 2026, 8:37am UTC](https://meta.discourse.org/t/automatically-transferring-themes-question/406271 "2026-06-27T08:37:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![one1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/one1/32/493591_2.png) [@one1](https://meta.discourse.org/u/one1)
#### Post date: [June 27, 2026, 8:37am UTC](https://meta.discourse.org/t/automatically-transferring-themes-question/406271/1 "2026-06-27T08:37:50Z")

</div>

I’m going to attempt to follow these instructions given [here.](https://meta.discourse.org/t/automatically-transferring-themes/180272)

> [@Automatically transferring themes](https://meta.discourse.org/t/automatically-transferring-themes/180272/3):
>
> 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])
> 
> ```

[ask.discourse.com](http://ask.discourse.com) is telling me that the getting into rails part should actually be:

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

```

Or that I should put `rails runner "..."` around the command:

```plaintext
rails runner "UserOption.where(theme_ids: [23]).update_all(theme_ids: [56])"

I've never done any rails commands before so I'm quite nervous.
```

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [June 28, 2026, 1:07am UTC](https://meta.discourse.org/t/automatically-transferring-themes-question/406271/2 "2026-06-28T01:07:40Z")

</div>

> [@one1](#):
>
> ```plaintext
> cd /var/discourse
> ./launcher enter app
> rails c
> 
> ```

Yes, `rails c` should be there to access the rails console. Typing `quit` when inside would exit it.

---

<div class="post-metadata">

### Author: ![one1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/one1/32/493591_2.png) [@one1](https://meta.discourse.org/u/one1)
#### Post date: [July 1, 2026, 5:42am UTC](https://meta.discourse.org/t/automatically-transferring-themes-question/406271/3 "2026-07-01T05:42:20Z")

</div>

Thanks!

It seems like one then has to type `exit` to get back to where one started.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 31, 2026, 5:42am UTC](https://meta.discourse.org/t/automatically-transferring-themes-question/406271/4 "2026-07-31T05:42:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
