Project

General

Profile

Download (256 Bytes) Statistics
| Branch: | Tag: | Revision:
class SubnetDomain < ActiveRecord::Base
belongs_to :domain
belongs_to :subnet

validates :subnet_id, :presence => true
validates :domain_id, :presence => true, :uniqueness => {:scope => :subnet_id}

def to_s
"#{domain} : #{subnet}"
end
end
(48-48/62)