Added before_destroy hook