I used to get migraines all the time, until a friend of mine who is a pharmacist recommended magnesium supplements. There are lots of different things that can cause migraines so who knows if it will work for you, but magnesium is extremely common in a lot of foods so there’s no harm in giving it a go. I haven’t had a migraine in years, although there have been some close calls.
From everything I’ve read a migraine is very similar to a muscle cramp, so if you’re getting those or just twitchy or restless muscles then it could be another symptom of the same problem. After a nerve activates, be it in your muscles or your brain, there is a secondary reaction which needs to take place in order to deactivate the nerve and reset it. The reaction requires magnesium, but oxygen can apparently be used in its place somehow I don’t know I’m not a chemist. If there’s not enough of either to complete the reaction then the nerve will continue to fire until it’s exhausted, which in a nutrient-depleted brain can have a cascading effect causing a great big seizure that hates you in your visual system. My migraines are caused in part by respiratory problems (usually for me in conjunction with exercise) so if you think bad air might be setting you off maybe you can compensate with a magnesium supplement.
You want to find something with vitamin B6, which helps your body to process it, and take it with food. Water soluble ones can work impressively quickly, you can kinda feel it spreading through your body like a morphine shot, so if you try that first you should be able to get an idea of if it’s going to work for you. Now I take a pill, 300mg per day, and I don’t think about it.
Hope that helps. I can get weirdly preachy about magnesium sometimes, but migraines are the pits and in a small way it changed my life. I feel sort of obliged to spread the good word.