remove project domain uniquness validation for now

This commit is contained in:
Celina Lopez
2024-10-16 12:48:39 -07:00
parent 583ad0ef71
commit f615dc90b6
+1 -1
View File
@@ -16,7 +16,7 @@ class Domain < ApplicationRecord
belongs_to :service
has_one :project, through: :service
has_one :cluster, through: :project
validates :domain_name, presence: true, uniqueness: { scope: [ :service_id, "service.project_id" ] }
validates :domain_name, presence: true, uniqueness: { scope: [ :service_id ] }
validate :domain_name_has_tld
before_save :downcase_domain_name
before_save :strip_protocol