Sha256: 14c5872495b3a5faa6242112ea93a0744c0a29c8333fa3981b2a4c0c51b307b5

Contents?: true

Size: 228 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
composite_primary_keys-14.0.10 test/fixtures/staff_room_key.rb