mirror of
https://github.com/internetee/registry.git
synced 2025-07-19 17:25:57 +02:00
changed contact has_many addresses to has_one
This commit is contained in:
parent
356835bebf
commit
27ca5714cd
5 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@ class Contact < ActiveRecord::Base
|
|||
#TODO Foreign contact will get email with activation link/username/temp password
|
||||
#TODO Phone number validation, in first phase very minimam in order to support current registries
|
||||
|
||||
has_many :addresses
|
||||
has_one :address
|
||||
has_many :domain_contacts
|
||||
has_many :domains, through: :domain_contacts
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue