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-8.1.2 test/fixtures/student.rb
composite_primary_keys-7.0.16 test/fixtures/student.rb
composite_primary_keys-7.0.15 test/fixtures/student.rb
composite_primary_keys-8.1.1 test/fixtures/student.rb
composite_primary_keys-7.0.14 test/fixtures/student.rb
composite_primary_keys-8.1.0 test/fixtures/student.rb
composite_primary_keys-7.0.13 test/fixtures/student.rb
composite_primary_keys-6.0.8 test/fixtures/student.rb
composite_primary_keys-8.0.0 test/fixtures/student.rb
composite_primary_keys-7.0.12 test/fixtures/student.rb
composite_primary_keys-7.0.11 test/fixtures/student.rb
composite_primary_keys-6.0.7 test/fixtures/student.rb
composite_primary_keys-7.0.10 test/fixtures/student.rb
composite_primary_keys-7.0.9 test/fixtures/student.rb
composite_primary_keys-7.0.8 test/fixtures/student.rb
composite_primary_keys-7.0.7 test/fixtures/student.rb
composite_primary_keys-7.0.6 test/fixtures/student.rb
composite_primary_keys-7.0.5 test/fixtures/student.rb
composite_primary_keys-7.0.4 test/fixtures/student.rb
composite_primary_keys-7.0.3 test/fixtures/student.rb