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

Merge branch 'master' of github.com:noesya/osuny

parents 318d8c35 bb33f527
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