Skip to content

Commit

Permalink
disable client_prefix and provider_prefix callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed May 20, 2019
1 parent e456486 commit c10a4d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/client_prefix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/models/provider_prefix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c10a4d3

Please sign in to comment.