Sha256: 09e325841674cf48a0d52ae10c5f081aa19d1cde4852f799161aebd7a3e2e37e
Contents?: true
Size: 222 Bytes
Versions: 3
Compression:
Stored size: 222 Bytes
Contents
class StaffRoomKey < ActiveRecord::Base self.primary_keys = :dorm_id, :room_id belongs_to :staff_room, :foreign_key => [:dorm_id, :room_id], :inverse_of => :staff_room_key has_one :room, :through => :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_key.rb |
composite_primary_keys-14.0.8 | test/fixtures/staff_room_key.rb |
composite_primary_keys-14.0.7 | test/fixtures/staff_room_key.rb |