mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
Registrar form
This commit is contained in:
parent
77510cc3fa
commit
7ef07114cb
8 changed files with 177 additions and 3 deletions
|
@ -1,10 +1,14 @@
|
|||
class Registrar < ActiveRecord::Base
|
||||
belongs_to :country
|
||||
has_many :domains
|
||||
has_many :domains, :dependent => :restrict_with_error
|
||||
has_many :ns_sets
|
||||
has_many :epp_users
|
||||
has_many :users
|
||||
|
||||
validates :name, :reg_no, :address, :country, presence: true
|
||||
validates :name, :reg_no, uniqueness: true
|
||||
|
||||
|
||||
def domain_transfers
|
||||
at = DomainTransfer.arel_table
|
||||
DomainTransfer.where(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue