# Creating and configuring custom user fields

**URL:** https://meta.discourse.org/t/creating-and-configuring-custom-user-fields/113192
**Category:** Site Management
**Tags:** how-to, user-custom-fields, users
**Created:** [4월 2, 2019, 1:42오전 UTC](https://meta.discourse.org/t/creating-and-configuring-custom-user-fields/113192 "2019-04-02T01:42:35Z")
**Posts on this page:** 1
**Showing post:** 84

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2월 8, 2026, 3:29오후 UTC](https://meta.discourse.org/t/creating-and-configuring-custom-user-fields/113192/84 "2026-02-08T15:29:42Z")

</div>

레일즈 콘솔을 사용해 순서를 재배열할 수 있다고 생각합니다. 이름을 타이핑할 때 오타가 생기기 쉬우므로, 필드를 ID로 입력하는 방식을 선택했습니다.

```plaintext
ids_in_order = [3, 7, 8, 5, 1, 2]

ids_in_order.each_with_index do |id, index|
  UserField.find(id).update!(position: index)
end

```

> [@Discourse](#):
>
> > ⚠ 콘솔 작업을 시작하기 전에 최신 백업이 되어 있는지 **매우** 중요합니다. 실수는 항상 발생할 수 있습니다!

---

_[View the full topic](https://meta.discourse.org/t/creating-and-configuring-custom-user-fields/113192)._
