summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-27 10:34:53 +0100
committerPeter Kozak <spag@golwen.net>2013-03-27 10:34:53 +0100
commit73a629589e6d4e20b2fb8dbddaa842908f5588d7 (patch)
treed6ff24790f2687fe14648ea4d79f03769d443275 /app/models
parent09f6490dc92d9685afa5f77563ea8c230c450211 (diff)
voicemail_accounts added to tenants
Diffstat (limited to 'app/models')
-rw-r--r--app/models/tenant.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/tenant.rb b/app/models/tenant.rb
index ffa68a7..b47faee 100644
--- a/app/models/tenant.rb
+++ b/app/models/tenant.rb
@@ -63,6 +63,8 @@ class Tenant < ActiveRecord::Base
has_many :group_memberships, :as => :item, :dependent => :destroy, :uniq => true
has_many :groups, :through => :group_memberships
+ has_many :voicemail_accounts, :as => :voicemail_accountable, :dependent => :destroy
+
# Validations:
#
validates_presence_of :name, :state, :country, :language