# Rails console commands

**URL:** <https://meta.discourse.org/t/rails-console-commands/300682>\
**Category:** Development\
**Tags:** rails-console\
**Created:** [March 23, 2024, 11:40pm UTC](https://meta.discourse.org/t/rails-console-commands/300682 "2024-03-23T23:40:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [March 24, 2024, 9:14am UTC](https://meta.discourse.org/t/rails-console-commands/300682/5 "2024-03-24T09:14:21Z")

</div>

You could do something like:

```ruby
t = Topic.find(123)
t.update(title: Topic.find(124).title)

```

But that’s more trouble than it’s worth. You can do things in steps:

```ruby
t1 = Topic.find(123)
t2 = Topic.find(124)
t1.update(title: t2.title)

```

---

_[View the full topic](https://meta.discourse.org/t/rails-console-commands/300682)._
