You can avoid the cascading destroys by changing this to `pull_request.repository.delete`. Se the [rails docs](http://api.rubyonrails.org/classes/ActiveRecord/Relation.html#method-i-delete) for all the juicy deets.