Sha256: f8c5720bb7b1016e7cc2f50986c5d3829ad016f247141305e9aa5770750cd595
Contents?: true
Size: 312 Bytes
Versions: 35
Compression:
Stored size: 312 Bytes
Contents
class Building < ActiveRecord::Base belongs_to :owner, :class_name => 'Person', :counter_cache => true, :inverse_of => :building has_many :floors, :dependent => :destroy, :inverse_of => :building has_one :address, :as => :addressable has_many :tenants, :through => :floors, :class_name => 'Person' end
Version data entries
35 entries across 35 versions & 1 rubygems