mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Contact - Registrar relation
This commit is contained in:
parent
9519538744
commit
3d652bf85b
11 changed files with 90 additions and 16 deletions
|
@ -4,6 +4,7 @@ class Registrar < ActiveRecord::Base
|
|||
has_many :ns_sets
|
||||
has_many :epp_users
|
||||
has_many :users
|
||||
has_many :contacts
|
||||
|
||||
validates :name, :reg_no, :address, :country, presence: true
|
||||
validates :name, :reg_no, uniqueness: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue