Any advice on tools or approaches for versioning ActiveRecord models?
i.e. track changes to a model such that a previous version of that model can be 
loaded.

Some options from 
https://www.ruby-toolbox.com/categories/Active_Record_Versioning

https://github.com/airblade/paper_trail
Looks reasonably active, last commit a month ago.
Not sure about Rails 4 compatibility.

https://github.com/collectiveidea/audited
Some activity 2 days ago, but 6 months before that.
Not sure about Rails 4 compatibility.

https://github.com/technoweenie/acts_as_versioned
Last activity over a year ago.
Last release more than two years ago.

Alternatively it would be pretty simple to do manually:
Pick the attributes that I want to version,
represent those in a new associated model,
create a new instance of that model for each change,
consider the most recent one the current version.

Any experience or tips?

— Paul

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rails-oceania?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to