I want to update an specific attribut in my database after save data.
For example i have an column in my table which called pending and it's an boolean. i want to set this value to true when data was saved.
after_save :do_something
private
def do_something
self.update_column(:pending, true)
end
This doesn't work. Anyone here who has an solution?