summaryrefslogtreecommitdiff
path: root/app/models/nets.rb
diff options
context:
space:
mode:
authorNicolas Braud-Santoni <nicoo@ffgraz.net>2016-08-07 16:39:42 +0200
committerNicolas Braud-Santoni <nicoo@ffgraz.net>2016-08-07 16:39:42 +0200
commitb6ca062670b342344df08b53fb216db619ef42bc (patch)
tree7680ac6b407239f6b7272c937e42f688b8de542c /app/models/nets.rb
Import legacy manman source
Copied from www.ffgraz.net
Diffstat (limited to 'app/models/nets.rb')
-rw-r--r--app/models/nets.rb10
1 files changed, 10 insertions, 0 deletions
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