mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Added legal document to contact, removed old comments
This commit is contained in:
parent
2e47bcf5cb
commit
ba55f3f9bc
8 changed files with 78 additions and 110 deletions
|
@ -7,10 +7,11 @@ class Contact < ActiveRecord::Base
|
|||
has_many :domain_contacts
|
||||
has_many :domains, through: :domain_contacts
|
||||
has_many :statuses, class_name: 'ContactStatus'
|
||||
has_many :legal_documents, as: :documentable
|
||||
|
||||
belongs_to :registrar
|
||||
|
||||
accepts_nested_attributes_for :address, :disclosure
|
||||
accepts_nested_attributes_for :address, :disclosure, :legal_documents
|
||||
|
||||
validates :name, :phone, :email, :ident, :address, :registrar, :ident_type, presence: true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue