Displaying 1 result from an estimated 1 matches for "resumeassignments".
Did you mean:
  resumeassignment
  
2005 Dec 15
8
How to ensure deletes cascade to associated models?
I have the following models:
class Resume
  belongs_to :resume_assignments
end
class User
  belongs_to :resume_assignments
end
class ResumeAssignment
  has_one :resume
  has_one :user
end
When I delete a resume, I want to make sure that its associated
ResumeAssignment gets deleted also.  Calling destroy_all to delete
some resumes doesn''t seem to do this.  Is there an option that will