On 03/05/2013, at 3:37 PM, Simon Russell <[email protected]> wrote:

> What's your end goal? Auditing, or something else?

The goal is to be able to update certain information in certain models without 
destroying the previous information.

Auditing (offline / non-runtime) is one use-case.
Additionally there may be runtime dependencies on past versions.

As you can probably tell, it's not entirely clear in my head yet.
I just know there'll be information being updated where I want to retain the 
prior versions.

— Paul


> 
> On Fri, May 3, 2013 at 3:33 PM, Paul Annesley <[email protected]> wrote:
>> 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