Sha256: e3b15416bc7202e1e67f503f7f14e29ce795f425112dcb31775190de6f9fcfef
Contents?: true
Size: 489 Bytes
Versions: 69
Compression:
Stored size: 489 Bytes
Contents
class Person < ActiveRecord::Base has_many :buildings, :foreign_key => :owner_id, :inverse_of => :owner has_one :floor, :foreign_key => :tenant_id, :inverse_of => :tenant has_one :address, :through => :floor has_one :home, :through => :floor, :source => :building, :class_name => 'Building' has_many :contacts, :as => :contactable has_one :car, :dependent => :destroy has_and_belongs_to_many :roles has_many :files, :dependent => :destroy, :class_name => 'FileModel' end
Version data entries
69 entries across 69 versions & 1 rubygems