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