Keeping a record that belonged to a record that has been del

could you do this?

class Employee < ActiveRecord::Base
has_many (or has_one) :testimonials, :dependent => :nullify

This will set the employee_id field to NULL in the testimonial table.

The "nullify" is only set on the models associated with the deleted
model, not all of the records in the associated table.

And just a thought:
Why delete the employee?
Why not use some sort of status to indicate they are no longer
currently employed?

You can then handle the display of employees based on status, and can
easily collect testimonials from all employees who are no longer

Just a thought.

Toby Hede
Web Application Development
Melbourne, Australia