summaryrefslogtreecommitdiff
path: root/app/models/tenant.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-17 10:27:05 +0200
committerPeter Kozak <spag@golwen.net>2013-04-17 10:27:05 +0200
commitf8e34e0e948352f18db9665b55c9848b1b71b512 (patch)
tree85508191284bae82fb2a9ced701d8486d9d9bb1f /app/models/tenant.rb
parent73172e5ce8f863951476559890fdf7528037bc07 (diff)
files view
Diffstat (limited to 'app/models/tenant.rb')
-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 b47faee..7ed14c7 100644
--- a/app/models/tenant.rb
+++ b/app/models/tenant.rb
@@ -65,6 +65,8 @@ class Tenant < ActiveRecord::Base
has_many :voicemail_accounts, :as => :voicemail_accountable, :dependent => :destroy
+ has_many :generic_files, :as => :owner, :dependent => :destroy
+
# Validations:
#
validates_presence_of :name, :state, :country, :language