Registrar form

This commit is contained in:
Martin Lensment 2014-09-29 18:12:43 +03:00
parent 77510cc3fa
commit 7ef07114cb
8 changed files with 177 additions and 3 deletions

View file

@ -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(