Add messages and bump epp-xml

This commit is contained in:
Martin Lensment 2014-11-06 10:31:38 +02:00
parent be319509ca
commit ef632e0ce1
11 changed files with 138 additions and 43 deletions

View file

@ -4,6 +4,7 @@ class Registrar < ActiveRecord::Base
has_many :contacts, dependent: :restrict_with_error
has_many :epp_users, dependent: :restrict_with_error
has_many :users, dependent: :restrict_with_error
has_many :messages
validates :name, :reg_no, :address, :country, presence: true
validates :name, :reg_no, uniqueness: true