detach to delete relation, attach to create