Act_as_versioned and join tables?


#1

Greetings!

I’m attempting to use the act_as_versioned plugin to provide versioning
functionality for my rails app, but can’t think my way through this:

How can you use act_as_versioned to perform versioning on a HABTM join
table? It is easy to see how to do so for join models (:has_many
:through) but not so for the join table.

I want to use act_as_versioned to maintain both a change record for the
database and as a method to maintain snapshots of the database at
particular points in time. It is possible that the records associated
via the join table may be associated in one snapshot, not associated in
a later snapshot, and related again in a still later snapshot.

Any help with this issue would be greatly appreciated.

David.


#2

On 6/13/06, David W. removed_email_address@domain.invalid wrote:

database and as a method to maintain snapshots of the database at
particular points in time. It is possible that the records associated
via the join table may be associated in one snapshot, not associated in
a later snapshot, and related again in a still later snapshot.

Any help with this issue would be greatly appreciated.

David.

acts_as_versioned doesn’t even attempt to do this. Try this:
http://livsey.org/articles/2006/06/08/acts_as_versioned_association-plugin


#3

Rick O. wrote:

On 6/13/06, David W. removed_email_address@domain.invalid wrote:

database and as a method to maintain snapshots of the database at
particular points in time. It is possible that the records associated
via the join table may be associated in one snapshot, not associated in
a later snapshot, and related again in a still later snapshot.

Any help with this issue would be greatly appreciated.

David.

acts_as_versioned doesn’t even attempt to do this. Try this:
http://livsey.org/articles/2006/06/08/acts_as_versioned_association-plugin

Thanks! I’ll take a look at it.

David.


#4

David W. wrote:

acts_as_versioned doesn’t even attempt to do this. Try this:
http://livsey.org/articles/2006/06/08/acts_as_versioned_association-plugin

Thanks! I’ll take a look at it.

David.

Drop me a line if you need any help with it as documentation is
non-existant at the moment! I’m working on that along with making it
generally easier and more configurable over the next few days.


#5

Steven Talcott S. wrote:

generally easier and more configurable over the next few days.

I too would like to use this. Being relatively new – how do I install
this with the “gem install” command?

acts_as_versioned was magically recognized.

Steven

It’s just in the SVN repository at the moment, there’s no GEM.

You can either check it out of the repository and put it in the plugins
folder, or use svn:externals to do that for you if your project is under
subversion.


#6

Richard L. wrote:

David W. wrote:

acts_as_versioned doesn’t even attempt to do this. Try this:
http://livsey.org/articles/2006/06/08/acts_as_versioned_association-plugin

Thanks! I’ll take a look at it.

David.

Drop me a line if you need any help with it as documentation is
non-existant at the moment! I’m working on that along with making it
generally easier and more configurable over the next few days.

I too would like to use this. Being relatively new – how do I install
this with the “gem install” command?

acts_as_versioned was magically recognized.

Steven


#7

Richard L. wrote:

It’s just in the SVN repository at the moment, there’s no GEM.

You can either check it out of the repository and put it in the plugins
folder, or use svn:externals to do that for you if your project is under
subversion.

Thanks - I think this is going to get rid of a ton of CRUD from my old
app…

Steven


#8

I too would like to use this. Being relatively new – how do I install
this with the “gem install” command?

acts_as_versioned was magically recognized.

Steven

The gem version is old, you should use the rails plugin. I actually
released that before rails had plugins.


#9

This is like dreams coming true… acts_as_versioned_association


#10

Rick O. wrote:

The gem version is old, you should use the rails plugin. I actually
released that before rails had plugins.

Thanks I found this out from your website when googling the error
generated by the migration.