Add after_destroy callback to update es index
Change type to kind in post model