mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Owner contact validation
This commit is contained in:
parent
4396ec665c
commit
62b3ff6fc7
5 changed files with 45 additions and 34 deletions
|
@ -22,6 +22,9 @@ class Domain < ActiveRecord::Base
|
|||
validates :name, domain_name: true, uniqueness: { message: I18n.t('errors.messages.epp_domain_taken') }
|
||||
validates :name_puny, domain_name: true
|
||||
validates :period, numericality: { only_integer: true, greater_than: 0, less_than: 100 }
|
||||
validates :owner_contact, presence: true
|
||||
# validates :tech_contacts_count
|
||||
# validates :admin_contacts_count
|
||||
|
||||
def name=(value)
|
||||
value.strip!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue