I want to do this

```
User.all.each do |user|
    user.salary = user.salary + 100
    user.save
end

```

I tried this `User.update_all(salary: "salary + 100")` but it raised that exception `Mysql::Error: Incorrect integer value: 'salary + 100' for column 'salary' at row 1:`

What is the best way to increment all records in rails ?