Fiorinal and Fioricet are both migraine medications that contain opiates (and barbiturates). I've suffered from migraines for 30 years, and both were regularly prescribed for me on and off by my neurologist. Later (meaning within the last 15 years), he also added Replax (like Imitrex). I've fully switched over to Relpax 100%, but for the first five years or so after they came out, I was given both because the Relpax initially was $16 a pill with my insurance. I would debate whether my migraine was $16 worthy, or if a Fiorinal would suffice.
I absolutely think that Leah is a pill addict, but it's not the case that opiates aren't prescribed for migraines.