Taking Medication. 1  1. Recognize a migraine. Learn to recognize the warning signs of a migraine. 2  2. Act fast. Many of the steps you can take to stop or minimize a migraine work best when taken at the first sign of migraine symptoms. 3  3. Take basic painkillers.