This may also be clearer:

```ruby
class Participant < ActiveRecord::Base
  has_many :events, :dependent => :nullify
end

participant.events.destroy_all   # sets all participant_id fields in associated events to NULL
```