Sha256: 24ea92a3ab60ac3daed161c1f599886eeae3d3e7aebf71a45cb4bd4121f13ad3

Contents?: true

Size: 316 Bytes

Versions: 18

Compression:

Stored size: 316 Bytes

Contents

class RoomAssignment < ActiveRecord::Base
  set_primary_keys :student_id, :dorm_id, :room_id
  belongs_to :student
  belongs_to :room, :foreign_key => [:dorm_id, :room_id], :primary_key => [:dorm_id, :room_id]

  before_destroy do |record|
    puts record
  end

  after_destroy do |record|
    puts record
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
composite_primary_keys-3.1.11 test/fixtures/room_assignment.rb
composite_primary_keys-5.0.0.rc1 test/fixtures/room_assignment.rb
composite_primary_keys-4.1.2 test/fixtures/room_assignment.rb
composite_primary_keys-4.1.1 test/fixtures/room_assignment.rb
composite_primary_keys-4.0.0 test/fixtures/room_assignment.rb
composite_primary_keys-4.0.0.beta9 test/fixtures/room_assignment.rb
composite_primary_keys-4.0.0.beta8 test/fixtures/room_assignment.rb
composite_primary_keys-4.0.0.beta7 test/fixtures/room_assignment.rb
composite_primary_keys-4.0.0.beta6 test/fixtures/room_assignment.rb
composite_primary_keys-4.0.0.beta5 test/fixtures/room_assignment.rb
composite_primary_keys-4.0.0.beta4 test/fixtures/room_assignment.rb
composite_primary_keys-4.0.0.beta3 test/fixtures/room_assignment.rb
composite_primary_keys-3.1.10 test/fixtures/room_assignment.rb
composite_primary_keys-4.0.0.beta2 test/fixtures/room_assignment.rb
composite_primary_keys-4.0.0.beta1 test/fixtures/room_assignment.rb
composite_primary_keys-3.1.9 test/fixtures/room_assignment.rb
composite_primary_keys-3.1.8 test/fixtures/room_assignment.rb
composite_primary_keys-3.1.7 test/fixtures/room_assignment.rb