Sha256: 78f15260087b75636101e098beff5d7400f2b383038c164144346ef03404ce7d

Contents?: true

Size: 191 Bytes

Versions: 29

Compression:

Stored size: 191 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

29 entries across 29 versions & 1 rubygems

Version Path
composite_primary_keys-13.0.1 test/fixtures/student.rb
composite_primary_keys-13.0.0 test/fixtures/student.rb
composite_primary_keys-12.0.10 test/fixtures/student.rb
composite_primary_keys-12.0.9 test/fixtures/student.rb
composite_primary_keys-12.0.8 test/fixtures/student.rb
composite_primary_keys-12.0.6 test/fixtures/student.rb
composite_primary_keys-12.0.5 test/fixtures/student.rb
composite_primary_keys-12.0.4 test/fixtures/student.rb
composite_primary_keys-12.0.3 test/fixtures/student.rb
composite_primary_keys-12.0.2 test/fixtures/student.rb
composite_primary_keys-11.3.1 test/fixtures/student.rb
composite_primary_keys-8.1.8 test/fixtures/student.rb
composite_primary_keys-12.0.1 test/fixtures/student.rb
composite_primary_keys-12.0.0 test/fixtures/student.rb
composite_primary_keys-12.0.0.rc5 test/fixtures/student.rb
composite_primary_keys-12.0.0.rc4 test/fixtures/student.rb
composite_primary_keys-12.0.0.rc3 test/fixtures/student.rb
composite_primary_keys-12.0.0.rc2 test/fixtures/student.rb
composite_primary_keys-12.0.0.rc1 test/fixtures/student.rb
composite_primary_keys-8.1.7 test/fixtures/student.rb