Sha256: 713481a4cec3a9e9c951c8957c5191a01a4e4a3a22f2977f025230b3a3007b93

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

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