For many people, the number of migraines can be limited or, in some cases, even prevented by making certain lifestyle changes and learning specific migraine triggers. For people who have migraine headaches more than two times per week, medication may be necessary to control migraines.