mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Add some new contact fields to registrar
This commit is contained in:
parent
0c16146ebb
commit
65d849cc36
10 changed files with 81 additions and 24 deletions
|
@ -5,9 +5,11 @@ class Registrar < ActiveRecord::Base
|
|||
has_many :api_users, dependent: :restrict_with_error
|
||||
has_many :messages
|
||||
|
||||
validates :name, :reg_no, :address, :country, presence: true
|
||||
validates :name, :reg_no, :address, :country, :email, presence: true
|
||||
validates :name, :reg_no, uniqueness: true
|
||||
|
||||
validates :email, :billing_email, format: /@/, allow_blank: true
|
||||
|
||||
def domain_transfers
|
||||
at = DomainTransfer.arel_table
|
||||
DomainTransfer.where(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue