Skip to content
Snippets Groups Projects
Unverified Commit 67a0dccb authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

dependent destroy between role & people

parent 40428e83
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ class Education::Program::Role < ApplicationRecord
belongs_to :university
belongs_to :program, class_name: 'Education::Program'
has_many :people, class_name: 'Education::Program::Role::Person'
has_many :people, class_name: 'Education::Program::Role::Person', dependent: :destroy
has_many :university_people, through: :people, source: :person
def to_s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment