Summary. Sumatriptan (Imitrex) is a first choice medication for treating migraine attacks when you get them, but you can't use it to prevent migraines from happening. Eletriptan (Relpax) is a first-choice option for the treatment of migraines, but it's only available in a pill form.