mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Info request for domain
This commit is contained in:
parent
ed73278620
commit
c34f01aeb3
6 changed files with 116 additions and 0 deletions
|
@ -32,6 +32,9 @@ class Domain < ActiveRecord::Base
|
|||
|
||||
has_and_belongs_to_many :nameservers
|
||||
|
||||
delegate :code, to: :owner_contact, prefix: true
|
||||
delegate :name, to: :registrar, prefix: true
|
||||
|
||||
validates :name_dirty, domain_name: true, uniqueness: true
|
||||
validates :period, numericality: { only_integer: true }
|
||||
validates :name, :owner_contact, presence: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue