I am trying to write a migration that will increase the value of an integer field by +1. I’ve tried several variations and done searches. What I am looking for is something like:
def self.up
User.update_all(:category => [:category + 1])
end
Thanks.
Maybe this will do it