i need to delete a record from the database and delete all of it’s
children as well. is there a method for this? right now, i am finding
all the children with the parent_id and destroying them first and then
destroying the parent. seems like there would be a better way to do this
but i can’t seem to figure it out.