---
title: "Discussion on \"Using the update_attribute() API using the rails console\" | Hashnode"
description: "Discussion on \"Using the update_attribute() API using the rails console\". I had a task at work to add data from the rails console after generating migrations and was puzzled about how to do it. After spending some time on the problem, I asked for help and this is what I got:\nobject=Model.first\nobject.description = \"Lorem I..."
url: "https://hashnode.com/posts/using-the-updateattribute-api-using-the-rails-console-1/5f952670fbdce372c9a57742"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using the update\_attribute() API using the rails console](https://blog.vicentereyes.org/using-the-updateattribute-api-using-the-rails-console-1?utm_source=hashnode&utm_medium=feed)

I had a task at work to add data from the rails console after generating migrations and was puzzled about how to do it. After spending some time on the problem, I asked for help and this is what I got: object=Model.first object.description = "Lorem I...

Aug 3, 2020 · 1 min read · blog.vicentereyes.org  
Updated Apr 29, 2023  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)

## Written by

[Vicente Reyes](https://hashnode.com/@vgreyes)

@vgreyes · MNL

  
[View profile](https://hashnode.com/@vgreyes)

Web Developer | Technical Writer | OSS Contributor | Musician | Gamer

Python Developer | Audio Editor | Technical Writer | OSS Contributor | Tag Moderator @ @ThePracticalDEV | Valorant TonyPoppins #881488

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
