Question: I have a model called **Agency**

One of the row from **Agency** active record looks as follows:

```
#<Agency id: 1, name: "Hello", contact_person: "Abhimanyu", phone_number: "946159", email: "Abhimanyu@purple.com ", local_package: false, outstation: true, remarks: nil, status: 1>

```

Here I want to change the value of `status` to `0` . How can I do that ?

Answer: 
You can also use this

`Agency.find(1).update_column(:status, 0)`
You need [`update_column`](https://apidock.com/rails/ActiveRecord/Persistence/update_column) method. Try this:

```
agency = Agency.find(1)
agency.update_column(:status, 0)

```

You should spend sometime reading [RubyonRails Guide](http://guides.rubyonrails.org)