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-11.0.0.beta4 test/fixtures/student.rb
composite_primary_keys-11.0.0.beta3 test/fixtures/student.rb
composite_primary_keys-11.0.0.beta2 test/fixtures/student.rb
composite_primary_keys-11.0.0.beta1 test/fixtures/student.rb
composite_primary_keys-10.0.2 test/fixtures/student.rb
composite_primary_keys-10.0.1 test/fixtures/student.rb
composite_primary_keys-9.0.8 test/fixtures/student.rb
composite_primary_keys-10.0.0 test/fixtures/student.rb
composite_primary_keys-9.0.7 test/fixtures/student.rb
composite_primary_keys-8.1.6 test/fixtures/student.rb
composite_primary_keys-9.0.6 test/fixtures/student.rb
composite_primary_keys-9.0.5 test/fixtures/student.rb
composite_primary_keys-8.1.5 test/fixtures/student.rb
composite_primary_keys-9.0.4 test/fixtures/student.rb
composite_primary_keys-9.0.2 test/fixtures/student.rb
composite_primary_keys-9.0.1 test/fixtures/student.rb
composite_primary_keys-8.1.4 test/fixtures/student.rb
composite_primary_keys-9.0.0 test/fixtures/student.rb
composite_primary_keys-9.0.0.beta1 test/fixtures/student.rb
composite_primary_keys-8.1.3 test/fixtures/student.rb