From 0099f7f46f51ce6f27e30bd55e78ca00cb96689c Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire <94526761+natdeanlewissoftwire@users.noreply.github.com> Date: Wed, 18 Jan 2023 12:11:28 +0000 Subject: [PATCH] feat: remove association (#1196) --- app/models/organisation.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/organisation.rb b/app/models/organisation.rb index fa675b36c..8e68500a4 100644 --- a/app/models/organisation.rb +++ b/app/models/organisation.rb @@ -7,7 +7,6 @@ class Organisation < ApplicationRecord has_many :data_protection_confirmations has_many :organisation_rent_periods has_many :owned_schemes, class_name: "Scheme", foreign_key: "owning_organisation_id", dependent: :delete_all - has_many :managed_schemes, class_name: "Scheme", foreign_key: "managing_organisation_id" has_many :parent_organisation_relationships, foreign_key: :child_organisation_id, class_name: "OrganisationRelationship" has_many :parent_organisations, through: :parent_organisation_relationships has_many :child_organisation_relationships, foreign_key: :parent_organisation_id, class_name: "OrganisationRelationship"