From 462ff15f766fd3c148706d478abf259ab19d8114 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 28 Oct 2021 10:44:23 +0100 Subject: [PATCH] Remove Enterprise #inheritance_column Apparently this was part of an old feature from 2014... --- app/models/enterprise.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index 1d2af37a91..acedb7f34f 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -23,8 +23,6 @@ class Enterprise < ApplicationRecord has_paper_trail only: [:owner_id, :sells], on: [:update] - self.inheritance_column = nil - has_many :relationships_as_parent, class_name: 'EnterpriseRelationship', foreign_key: 'parent_id', dependent: :destroy