search for: archive_on_destroy

Displaying 1 result from an estimated 1 matches for "archive_on_destroy".

2005 Dec 29
5
Extracting SQL and Rebuilding from SQL?
...quot; are setup properly on associations within models, a single ".destroy()" called on the customer will yank all the data. Is there a way to do something else with those rows? i.e. sqldump of some sort? I thought of adding a "before_destroy" hook, checking a global "archive_on_destroy" or something and dumping those rows out. Is this a good way? Anyway, I''m just shooting in the dark now to brainstorm ways of performing this archival and retrieval. Any ideas would be greatly appreciated! -- Posted via http://www.ruby-forum.com/.