1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00

remove IP pool rules when deleting an IP pool

هذا الالتزام موجود في:
Adam Cooke
2017-05-15 10:43:44 +01:00
الأصل d33994ce0f
التزام 9a76538f11

عرض الملف

@@ -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