diff options
author | spag <spag@golwen.net> | 2013-02-12 15:53:49 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-02-12 15:53:49 +0100 |
commit | 36d1a38594361dcd021c23ae9c5040a37d0918df (patch) | |
tree | 15ebad678743935103e441bc54609ef9c58801a4 /app/models/tenant.rb | |
parent | fbdb5dca9b3979010b87b16fcb3bf9410c453e91 (diff) |
make parking stall child of user/tenant
Diffstat (limited to 'app/models/tenant.rb')
-rw-r--r-- | app/models/tenant.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/tenant.rb b/app/models/tenant.rb index 419ac3a..0622f52 100644 --- a/app/models/tenant.rb +++ b/app/models/tenant.rb @@ -39,6 +39,8 @@ class Tenant < ActiveRecord::Base has_many :automatic_call_distributors, :as => :automatic_call_distributorable, :dependent => :destroy has_many :acd_agents, :through => :automatic_call_distributors + has_many :parking_stalls, :as => :parking_stallable, :dependent => :destroy + # Phone numbers of the tenant. # has_many :phone_number_ranges_phone_numbers, :through => :phone_number_ranges, :source => :phone_numbers, :readonly => true |