From 9785bbcab08045c986c8936b411bd7a9073027c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Thu, 5 May 2022 12:18:04 +0200
Subject: [PATCH] remove university association with alumni and experiences

---
 app/models/university/with_education.rb                | 5 -----
 app/models/university/with_people_and_organizations.rb | 4 ----
 2 files changed, 9 deletions(-)

diff --git a/app/models/university/with_education.rb b/app/models/university/with_education.rb
index 6021cc2fc..95b2d605b 100644
--- a/app/models/university/with_education.rb
+++ b/app/models/university/with_education.rb
@@ -21,10 +21,5 @@ module University::WithEducation
               class_name: 'Education::AcademicYear',
               dependent: :destroy
     alias_attribute :academic_years, :education_academic_years
-
-    has_many  :university_person_alumni,
-              through: :education_cohorts,
-              source: :people
-    alias_attribute :alumni, :university_person_alumni
   end
 end
diff --git a/app/models/university/with_people_and_organizations.rb b/app/models/university/with_people_and_organizations.rb
index 2b384aa9a..ad18670f9 100644
--- a/app/models/university/with_people_and_organizations.rb
+++ b/app/models/university/with_people_and_organizations.rb
@@ -22,9 +22,5 @@ module University::WithPeopleAndOrganizations
               dependent: :destroy
     alias_attribute :person_alumnus_imports, :university_person_alumnus_imports
     alias_attribute :alumnus_imports, :university_person_alumnus_imports
-
-    has_many :university_person_experiences,
-              class_name: "University::Person::Experience",
-              dependent: :destroy
   end
 end
-- 
GitLab