mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Duplicate domain validation
This commit is contained in:
parent
1f29925004
commit
b6ef81fe31
3 changed files with 20 additions and 2 deletions
|
@ -9,6 +9,7 @@ class Domain < ActiveRecord::Base
|
|||
belongs_to :admin_contact, class_name: 'Contact'
|
||||
|
||||
validates :name, domain_name: true
|
||||
validates :name_dirty, uniqueness: true
|
||||
validates :name_puny, domain_name: true
|
||||
|
||||
def name=(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue