Handle children errors

This commit is contained in:
Martin Lensment 2014-08-05 16:08:31 +03:00
parent 3dca771bcb
commit 9ce6efc4db
8 changed files with 86 additions and 9 deletions

View file

@ -1,4 +1,6 @@
class Nameserver < ActiveRecord::Base
belongs_to :registrar
has_and_belongs_to_many :domains
validates :hostname, hostname: true
end