From c10a4d329605f0639b562c5365aca0d8a08392c5 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 20 May 2019 11:54:21 +0100 Subject: [PATCH] disable client_prefix and provider_prefix callbacks --- app/models/client_prefix.rb | 2 +- app/models/provider_prefix.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/client_prefix.rb b/app/models/client_prefix.rb index 31ff1f6cf..5d0cc5cab 100644 --- a/app/models/client_prefix.rb +++ b/app/models/client_prefix.rb @@ -6,7 +6,7 @@ class ClientPrefix < ActiveRecord::Base self.table_name = "datacentre_prefixes" - belongs_to :client, foreign_key: :datacentre, touch: true + belongs_to :client, foreign_key: :datacentre #, touch: true belongs_to :prefix, foreign_key: :prefixes belongs_to :provider_prefix, foreign_key: :allocator_prefixes diff --git a/app/models/provider_prefix.rb b/app/models/provider_prefix.rb index 7645c12c1..18188353c 100644 --- a/app/models/provider_prefix.rb +++ b/app/models/provider_prefix.rb @@ -6,7 +6,7 @@ class ProviderPrefix < ActiveRecord::Base self.table_name = "allocator_prefixes" - belongs_to :provider, foreign_key: :allocator, touch: true + belongs_to :provider, foreign_key: :allocator #, touch: true belongs_to :prefix, foreign_key: :prefixes has_many :client_prefixes, foreign_key: :allocator_prefixes, dependent: :destroy has_many :clients, through: :client_prefixes