Hello,
Can i turn of dependencies so that a destroy on one table will not
automatically destroy data in the child table?
Thanks
Are you talking about has_many, belongs_to helpers or table
inheritance?
Tom wrote:
Are you talking about has_many, belongs_to helpers or table
inheritance?
Hello,
Ya I don’t think I explained that to well. I have a model test that has
a belongs_to :test2. When I delete from test it also deletes from test2.
What I forgot to say is that I am using acts as paranoid so what my real
problem is that when I delete from test is sets the deleted_at which is
fine. But it also sets the deleted_at in test2 which is data that I
still want to be able to see even though the parent has been removed.
Basically if it is deleted from test I still want to be able to see it
in test2. I hope that makes more sense.
Thanks again.
Adam C. wrote:
On 8/29/07, New R. [email protected] wrote:
Tom wrote:
set :dependent => false (or nil) on the association
Adam
Great… Thanks
On 8/29/07, New R. [email protected] wrote:
Tom wrote:
set :dependent => false (or nil) on the association
Adam