I have a database full of some information, but I need to go into the rails console and add one integer to a specific data set in my local database.
I have a column named times_used, within that column I need to add one more integer into it.
I've tried,
p.update_attribute(:times_used, add: 1)
p.update_attribute(:times_used, add: :1)
p.update_attribute(:times_used, add: [:1])
p.update_attribute(:times_used, + 1)
p.update_attribute(:times_used) + 1
I'm wondering, what I am trying to do, is possible? Do I need to loop through these? Much thanks to anybody for taking a quick look at this.