Hassan Schroeder wrote in post #1012513:
> On Fri, Jul 22, 2011 at 4:28 PM, Rob Gu <[email protected]> wrote:
>> Ok thanks guys for the great advice, that is almost certainly the issue
>> (creating users and microposts, then deleting the original user etc..)
>
> Regardless of DB, remember you can handle situations like this using
> e.g. :dependent => :destroy on an association, or even an after_destroy
> callback (if you want to do something with the "orphaned" object").
>
> --
> Hassan Schroeder ------------------------ [email protected]
> http://about.me/hassanschroeder
> twitter: @hassan

That is insightful, thanks. I was actually wondering about some sort of 
cascade deletion method, seems like that would be it.  The after_destroy 
method seems like it could be useful too.

-- 
Posted via http://www.ruby-forum.com/.

-- 
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