Sha256: 13fc4839b4eee582db3add32b2b7cddfbea23433f9d7d48aca76fe98ee2da9ba
Contents?: true
Size: 260 Bytes
Versions: 3
Compression:
Stored size: 260 Bytes
Contents
class StaffRoom < ActiveRecord::Base self.primary_keys = :dorm_id, :room_id belongs_to :room, :foreign_key => [:dorm_id, :room_id], :inverse_of => :staff_room has_one :staff_room_key, :foreign_key => [:dorm_id, :room_id], :inverse_of => :staff_room end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
composite_primary_keys-14.0.9 | test/fixtures/staff_room.rb |
composite_primary_keys-14.0.8 | test/fixtures/staff_room.rb |
composite_primary_keys-14.0.7 | test/fixtures/staff_room.rb |