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-11.2.0 test/fixtures/student.rb
composite_primary_keys-11.1.0 test/fixtures/student.rb
composite_primary_keys-11.0.3 test/fixtures/student.rb
composite_primary_keys-11.0.2 test/fixtures/student.rb
composite_primary_keys-10.0.5 test/fixtures/student.rb
composite_primary_keys-9.0.10 test/fixtures/student.rb
composite_primary_keys-11.0.1 test/fixtures/student.rb
composite_primary_keys-11.0.0 test/fixtures/student.rb
composite_primary_keys-10.0.4 test/fixtures/student.rb