People have used psychedelics in spiritual practice for at least 5700 years, pre-dating all major organised religions. (Source: Protecting the human rights of people who use psychedelics)
My guess is early Buddhists used psychedelics as these substances were clearly available at that time and well before. A careful reading of the fifth precept indicates to me that the Buddha is talking only about alcohol, either fermented or distilled, and not psychedelics. I am not advocating the use of illegal psychedelics, but rather agreeing with the author of the linked quote that they have a long and respected place in religious practice and are not nearly as dangerous as is generally assumed among lawmakers. I also agree that it is not the business of government to legislate plants or tell people what they can or cannot put into their bodies, especially when far more good than harm arises from many of these substances.