mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Add messages and bump epp-xml
This commit is contained in:
parent
be319509ca
commit
ef632e0ce1
11 changed files with 138 additions and 43 deletions
3
app/models/message.rb
Normal file
3
app/models/message.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
class Message < ActiveRecord::Base
|
||||
belongs_to :registrar
|
||||
end
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue