summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-01-13 16:32:51 +0000
committerPeter Kozak <spag@golwen.net>2013-01-13 16:32:51 +0000
commitf4ff0f4d08d73e699edf3b18ff99ba34e64f952b (patch)
tree5436a673bf8675ee62c0deee9163ec1cb772de6e /app/models
parentaa896ace9575e1be265a8214add35892063579e6 (diff)
gateway models added
Diffstat (limited to 'app/models')
-rw-r--r--app/models/gateway.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/gateway.rb b/app/models/gateway.rb
new file mode 100644
index 0000000..6a7514c
--- /dev/null
+++ b/app/models/gateway.rb
@@ -0,0 +1,6 @@
+class Gateway < ActiveRecord::Base
+ attr_accessible :name, :technology, :inbound, :outbound, :description
+
+ has_many :gateway_settings, :dependent => :destroy
+ has_many :gateway_parameters, :dependent => :destroy
+end