summaryrefslogtreecommitdiff
path: root/app/models/pager_group.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-03 17:09:57 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-03 17:09:57 +0200
commit21995072fb0e57c8209460936c0e5b322a1547c3 (patch)
treef2d7dbb02ac37f433cad1b2ecc1398f1f91bd189 /app/models/pager_group.rb
parentcc6b71ffef4d781890cf7eef64ded71abb099a7f (diff)
PagerGroup stuff
Diffstat (limited to 'app/models/pager_group.rb')
-rw-r--r--app/models/pager_group.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/pager_group.rb b/app/models/pager_group.rb
new file mode 100644
index 0000000..861377f
--- /dev/null
+++ b/app/models/pager_group.rb
@@ -0,0 +1,8 @@
+class PagerGroup < ActiveRecord::Base
+ attr_accessible :sip_account_id, :callback_url
+
+ has_many :pager_group_destinations, :dependent => :destroy
+ belongs_to :sip_account
+
+ validates_presence_of :sip_account_id
+end