remove IP pool rules when deleting an IP pool
This commit is contained in:
1 parent
d33994ce0f
commit
9a76538f11
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user