Magnesium
You find this mineral in dark-green veggies, whole grains, and nuts. It won’t help while you’re having a migraine, but some studies show it could prevent one. You can also take it in pill form, but always check with your doctor before you take supplements.
Sleep well
Get some regular shut-eye to help stave off migraines. Too little — or too much — can trigger headaches and lower your threshold for pain. Aim for 7 to 8 hours each night and try to go to bed and wake up at the same time every day.