I have a model called Client with 3 attributes: name, phone and email. At the beginin, I have an instane of Client with some values: Mark, +54261334455 and fake@client.com. Then I change these values to: Peter, +54261444444, another@mail.com but I need to persist the old values. How can I do this?
My options:
better ideas to do this?
It may be an overkill in your situation but there are some great ActiveRecord versioning tools. It will let you keep track on changes done to a specific record and even reset values to former versions.
One of the best solutions I know of is paper_trail