diff --git a/app/models/ip_pool.rb b/app/models/ip_pool.rb index df1a301..629929b 100644 --- a/app/models/ip_pool.rb +++ b/app/models/ip_pool.rb @@ -24,6 +24,7 @@ class IPPool < ApplicationRecord has_many :servers, :dependent => :restrict_with_exception has_many :organization_ip_pools, :dependent => :destroy has_many :organizations, :through => :organization_ip_pools + has_many :ip_pool_rules, :dependent => :destroy def self.default where(:default => true).order(:id).first