# カスタム画像はステージングユーザーに追加できません

**URL:** <https://meta.discourse.org/t/custom-images-cant-be-added-to-staged-users/367295>\
**Category:** Bug\
**Tags:** pr-welcome, staged-users\
**Created:** [2025 年 5 月 22 日午後 10:19 UTC](https://meta.discourse.org/t/custom-images-cant-be-added-to-staged-users/367295 "2025-05-22T22:19:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)\
**Post date:** [2025 年 8 月 30 日午前 1:41 UTC](https://meta.discourse.org/t/custom-images-cant-be-added-to-staged-users/367295/4 "2025-08-30T01:41:30Z")

</div>

この問題の回避策があります。まずバックアップを取ってから、railsコンソールを調べます。

### サーバーで

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

```

### ユーザーを変換する

次に、ユーザーがステージングされていないように変換します。

変換するステージング済みユーザーのメールアドレス

```plaintext
User.find_by_email("=EMAIL=").update(staged: false)

```

### プロフィール写真をアップロードする

⬆ 他のユーザーと同じように

### ステージング済みユーザーに戻す

本当に「ステージング済み」のままにしたい場合を除き、おそらく不要です。

```plaintext
User.find_by_email("=EMAIL=").update(staged: true)

```

完了です！コンソールを終了することを忘れないでください。

これまでに問題は発生していませんが、保証はありません！

---

_[View the full topic](https://meta.discourse.org/t/custom-images-cant-be-added-to-staged-users/367295)._
