Open johrstrom opened 2 years ago
Another note says:
This may be indicative of a bug. What were the original occurrences, where did they go, why did this get created anyways?
Until then this can just be manually deleted in production by doing:
# give me a list of species id's to delete
Species.where(id: (Species.distinct.pluck(:id) - Occurrence.distinct.pluck(:species_id).uniq)).delete_all