mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
parent
524854451a
commit
be057656e8
4 changed files with 15 additions and 1 deletions
|
@ -104,6 +104,7 @@ class Domain < ActiveRecord::Base
|
|||
validates :name_dirty, domain_name: true, uniqueness: true
|
||||
validates :puny_label, length: { maximum: 63 }
|
||||
validates :period, presence: true, numericality: { only_integer: true }
|
||||
validates :transfer_code, presence: true
|
||||
|
||||
validate :validate_reservation
|
||||
def validate_reservation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue