I used to get migraines really often. A few pointers: Don't look at anything that emits light and find someplace quiet. In other words, looking at the computer screen on the forums is a horrible idea.
Usually the only way my migraines went away was by sleeping it off as soon as I felt it coming on. If you let it get into full swing, you will not be able to fall asleep even in a dark, quiet room. Which is better than throwing up from how much it hurts if you don't find a dark, quiet room fast enough. That happened to me a lot. Just the sheer pain caused that.