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/ip.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/models/ip.rb (limited to 'app/models/ip.rb') diff --git a/app/models/ip.rb b/app/models/ip.rb new file mode 100644 index 0000000..c647078 --- /dev/null +++ b/app/models/ip.rb @@ -0,0 +1,5 @@ +class Ip < ActiveRecord::Base + set_table_name "ip" + belongs_to :node, :foreign_key => "node_id" + belongs_to :nets, :foreign_key => 'net_id' +end -- cgit v1.2.1