@Ed:

Just leave the :dependent option off completely and nothing happens to
the other records.  That's the default behavior.


On Tue, Dec 16, 2008 at 10:37 AM, Patrick Doyle <[email protected]> wrote:
> On Tue, Dec 16, 2008 at 10:29 AM, Ed Lebert <[email protected]> wrote:
>>
>> I have an "audit" table that records when changes are made to another
>> table.  If a record is destroyed, I don't want all the change audits
>> for that record destroyed or nullified along with it.
>>
> How about :dependent => :nullify, or perhaps not attaching :dependent at all
> to your model which (I am presuming) :has_many of the other model?
>
> --wpd
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to