You can take note using an app migraine tracker of when your migraines happen, how long they last, and where the pain is. You can also mark down how much sleep, exercise, and water you had before the migraine started.
When you are younger, it happens with lack of sleep and nutrition.
When older, it is related to other body issues and other toxins.
When terminally ill, it is cancer growing.
Sleep, vitamin C, calcium with magnesium at night, melatonin and detoxing with probiotics, greens, avoidance of red meat and getting adequate sunshine can help.