added dedicated registrant model

This commit is contained in:
Priit Tark 2015-05-11 16:22:43 +03:00
parent 2ed9672eb5
commit 321e28b8c7
10 changed files with 40 additions and 14 deletions

View file

@ -7,7 +7,7 @@ class Domain < ActiveRecord::Base
paginates_per 10 # just for showoff
belongs_to :registrar
belongs_to :registrant, class_name: 'Contact'
belongs_to :registrant
has_many :domain_contacts, dependent: :destroy
has_many :admin_domain_contacts