search for: user_courses

Displaying 1 result from an estimated 1 matches for "user_courses".

2008 Apr 16
1
AR - Delete m:n Associations when deleting Record
Hey! I have three tables in my DB users <--> users_courses <--> courses users and courses are m:n related: User: has_many :courses, :through => :user_courses Course has_many :users, :through => :user_courses I want to delete all records for a user in user_courses when deleting the user. How do i achieve that? thx -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you...