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

dependent destroy on program#categories

parent 10586872
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,9 @@ class Education::Program < ApplicationRecord
has_many :roles,
class_name: 'Education::Program::Role',
dependent: :destroy
has_many :website_categories,
class_name: 'Communication::Website::Category',
dependent: :destroy
has_and_belongs_to_many :schools,
class_name: 'Education::School',
join_table: 'education_programs_schools',
......
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