Skip to content
Snippets Groups Projects
Commit d29b4027 authored by pabois's avatar pabois
Browse files

close #112

parent 2c9bc4d9
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class Education::School < ApplicationRecord
include WithGit
belongs_to :university
has_many :websites, class_name: 'Communication::Website', as: :about
has_many :websites, class_name: 'Communication::Website', as: :about, dependent: :nullify
has_and_belongs_to_many :programs,
class_name: 'Education::Program',
join_table: 'education_programs_schools',
......
......@@ -24,7 +24,7 @@ class Research::Journal < ApplicationRecord
include WithGit
belongs_to :university
has_many :websites, class_name: 'Communication::Website', as: :about
has_many :websites, class_name: 'Communication::Website', as: :about, dependent: :nullify
has_many :volumes, foreign_key: :research_journal_id, dependent: :destroy
has_many :articles, foreign_key: :research_journal_id, dependent: :destroy
has_many :researchers, through: :articles
......
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