summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
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