Sha256: 4aebcb7c17aab90a1908daf8bebbda9d58e7ef520bb880e4c79bf1225d960883

Contents?: true

Size: 188 Bytes

Versions: 102

Compression:

Stored size: 188 Bytes

Contents

class Student < ActiveRecord::Base
  has_many :room_assignments, :dependent => :destroy
  has_many :rooms, :through => :room_assignments, :foreign_key => [:building_code, :room_number]
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
composite_primary_keys-14.0.9 test/fixtures/student.rb
composite_primary_keys-14.0.8 test/fixtures/student.rb
composite_primary_keys-13.0.8 test/fixtures/student.rb
composite_primary_keys-14.0.7 test/fixtures/student.rb
composite_primary_keys-14.0.6 test/fixtures/student.rb
composite_primary_keys-13.0.7 test/fixtures/student.rb
composite_primary_keys-13.0.6 test/fixtures/student.rb
composite_primary_keys-14.0.5 test/fixtures/student.rb
composite_primary_keys-13.0.5 test/fixtures/student.rb
composite_primary_keys-13.0.4 test/fixtures/student.rb
composite_primary_keys-14.0.4 test/fixtures/student.rb
composite_primary_keys-14.0.3 test/fixtures/student.rb
composite_primary_keys-13.0.3 test/fixtures/student.rb
composite_primary_keys-14.0.2 test/fixtures/student.rb
composite_primary_keys-13.0.2 test/fixtures/student.rb
composite_primary_keys-14.0.1 test/fixtures/student.rb
composite_primary_keys-9.0.9 test/fixtures/student.rb
composite_primary_keys-11.0.0.rc2 test/fixtures/student.rb
composite_primary_keys-10.0.3 test/fixtures/student.rb
composite_primary_keys-11.0.0.rc1 test/fixtures/student.rb