مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
@@ -15,7 +15,8 @@ class IPAddress < ApplicationRecord
|
|||||||
|
|
||||||
belongs_to :ip_pool
|
belongs_to :ip_pool
|
||||||
|
|
||||||
validates :ipv4, :presence => true
|
validates :ipv4, :presence => true, :uniqueness => true
|
||||||
validates :hostname, :presence => true
|
validates :hostname, :presence => true
|
||||||
|
validates :ipv6, :uniqueness => {:allow_blank => true}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم