switched callback for deleting associated entities from after_destroy  to before_destroy