I've been getting them since I was 12, i'm now 31. I tried everything from pain pills, to treat the headaches as they came, to antidepressants & heart medications taken daily to prevent them from coming.
The medication I take now is called topamax, it's an an epilepsy medication, and I take it daily to prevent migraines, rather than taking something once I already have one.
I started taking it about two months before it was fda approved for migraines, and it works great, although my headaches have started to come back in the last few months.
I've had two so far, but they're nowhere near as bad as they would be without the topamax, i'm not spending 12 or more hours in the bathroom throwing up like I would be without the medication.
It takes some getting used to in the beginning until you get your dose adjusted, and some side effects that I had were tingling in my face and hands, but it went away over time, and it wasn't constant. I'd rather put up with that than the migraines.