mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
parent
c14d15d7b7
commit
c037166085
8 changed files with 88 additions and 2 deletions
|
@ -12,7 +12,7 @@ class Registrar < ActiveRecord::Base
|
|||
has_many :priv_contacts, -> { privs }, class_name: 'Contact'
|
||||
has_many :white_ips, dependent: :destroy
|
||||
|
||||
delegate :balance, to: :cash_account
|
||||
delegate :balance, to: :cash_account, allow_nil: true
|
||||
|
||||
validates :name, :reg_no, :country_code, :email, :code, presence: true
|
||||
validates :name, :reg_no, :reference_no, :code, uniqueness: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue