According to a study published in the journal Cephalalgia, frequent workouts work just as well as daily medicine or relaxation in preventing migraines. Three times each week, participants exercised for 40 minutes. Doctors say sweat sessions may lower stress hormones that trigger head headaches.