Sorry I’m a little late to the party here, but I’ll add my two cents anyway since @augustlan asked so nicely. ;) Migraines and their treatments are very individualized so just know that our experiences are possibly very different from your own.
Apologies ahead of time for the length!
Starting in middle school, I had somewhat of a “constant headache” that lasted for years; it was at an annoying but tolerable level, but never went away regardless of any medication. Fast forward to around the time that I started 10th grade, I developed a whole slew of other symptoms. I was having extreme dizziness and was very lightheaded, slight balance issues, vision issues, sensitive hearing, auras (though I did not realize that this had been a symptom until quite recently), a bit of nausea, and massive and persistent migraines. At this point, my doctor referred me to a neurologist, who gave me the vague diagnosis of a “migraine disorder.” Basically, it means that I have a constant migraine in my natural state, and that this caused the other problems. So to treat the other symptoms, I treat the migraines.
As for treatment, I went through several options before landing on Nortriptyline, which I take daily as a preventative measure. It’s actually an anxiety medication that has a fortunate side effect of treating migraines, which I only took after trying several medications normally intended for migraines that just didn’t work for me. One even made me so sick that I lost over five pounds in one week. You may not have to take a daily preventative medication, most people don’t; it totally depends on how often you get them. But if you do, just be prepared that you will probably go through some that really suck before you find a good one.
I do still get migraines, though, just not nearly as often and usually without most of the other side effects. For as-needed treatment, I have a few things in my arsenal. For a small to moderate migraine, I usually take three Advil, which does the trick (at least temporarily) about 50% of the time. If that doesn’t work after a certain amount time or if the migraine is already pretty bad, I’ll take Excedrin or Vanquish (which my dad just recently introduced me to and works a little better for me). These work about 60–70% of the time. For the other 30% of the time or when the migraine is pretty freaking awful, I take my as-needed prescription, Relpax. It’s almost 100% effective in eliminating the migraines, but I generally try other things first solely because it’s a pretty expensive medication. If OTC medications just aren’t doing it for you on a regular basis, you should talk to your doctor about a prescription option.
People generally have a few triggers for their migraines. Don’t get me wrong, they can come out of nowhere, too, but certain things may particularly set them off. Dehydration is a big one for me, to the point that I frequently have no idea that I’m dehydrated until I get a migraine. Many people, myself included, will have worse and more frequent migraines around their periods. Overwhelming light or noise are also common causes. Caffeine is another very common one, but I have to disagree with @JLeslie about cutting it out altogether. If caffeine is a trigger for you (and it isn’t for everyone), you can probably figure it out pretty easily and quickly unless you consume copious amounts of caffeine daily. If you have a coffee or a Coke and a migraine follows on more than one occasion, chances are it’s a trigger. This works for determining pretty much any trigger you have. After that, you just need to know your limits. In my case, for example, caffeine from sodas is usually the only type that triggers migraines, so as a general rule I avoid caffeinated soda. But if I decide I want one, I allow myself no more than the amount in one bottle, I have to drink it slowly, and I can’t have one if I’ve already had a coffee (and vice versa). Caffeine can actually help migraines sometimes, but the amount already in medications like Excedrin will suffice, so I wouldn’t recommend risking self-medication with caffeine if it’s a trigger for you. I’ve never personally gotten a worse headache from the small amount of caffeine in those medications, but it is a possibility.