From b6ca062670b342344df08b53fb216db619ef42bc Mon Sep 17 00:00:00 2001 From: Nicolas Braud-Santoni Date: Sun, 7 Aug 2016 16:39:42 +0200 Subject: Import legacy manman source Copied from www.ffgraz.net --- app/models/nets.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/models/nets.rb (limited to 'app/models/nets.rb') diff --git a/app/models/nets.rb b/app/models/nets.rb new file mode 100644 index 0000000..59f43c6 --- /dev/null +++ b/app/models/nets.rb @@ -0,0 +1,10 @@ +class Nets < ActiveRecord::Base + set_table_name "net" + belongs_to :location + belongs_to :nettype + has_many :ip + + validates_presence_of :netip, :netmask + #validates_uniqueness_of :netip + +end -- cgit v1.2.1