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