Glad you had some meds with you...!
I've had a couple of migraine sufferers as passengers. Such a terrible thing to experience during a flight, close confines, no real control over the environment.
With one woman, we made her as comfy as possible inside one of the lavatories. Fortunately it was non-stinky that day, but she couldn't lock the door without turning on the lights - so we FA's took turns watching it and redirecting passengers. The quiet(er) dark and air from the vent helped her a bit. With another passenger, I found some stray blankets and helped him make a sort of tent over his seat to block out the light as best we could. He had less fresh air though, but he needed to get out of the light more than anything.
I'd love to hear other ideas, though, on how you guys deal with this - I hate feeling so helpless when I have a passenger dealing with it.