I guarantee you that schools were not throwing out peanut butter sandwiches when I was a kid, and many of the schools I went to are doing so now.
I'm sure you can find an article about peanut allergies at any point in recorded history where they had peanuts.