Depending on the kind of migraines you get, you need to investigate the medications. The ones I have dealt with my doctor confirmed are both migraines and
cluster headaches. She gave me Amitriptyline, to take one every night. It is actually an antidepressant, but taken in low dosage, also treats severe headaches and assists with good sleeping. Mine is a 25 mg. I also take Singulair, which is for Allergies, but my doctor told me that allergies can bring on very bad headaches as well.