Ruby on Rails Discussions
deleting all related tuples in all relevant tables
rubyonrails-talk
jdswift
(jdswift)
January 8, 2007, 11:20pm
1
I think you just want something like:
has_many :things, :dependent => :destroy
in your model.
Related topics
Topic
Replies
Views
Activity
deleting all related tuples in all relevant tables
rubyonrails-talk
0
124
January 8, 2007
Deleting ALL info for a user in many tables?
rubyonrails-talk
0
120
July 16, 2007
relationships and delete
rubyonrails-talk
0
86
October 3, 2006
delete all with has_many
rubyonrails-talk
1
118
February 27, 2009
destroying entities related by foreign key
rubyonrails-talk
0
137
March 3, 2009