After trying some prescription drugs I've also found Marijuana works the best for me. It's the difference between lying on the bathroom floor waiting to throw up and being semi-functional (I am pretty stoned, so not totally functional) around the house.
I don't think it's a cure so much as a great way to manage the pain while the migraine is at its peak, unfortunately the migraine hangover still lasts for days.
There is also a significant hormonal component to migraines. Women have 2-4x as many migraines as men — an effect that is also seen in trans women who are taking estrogen, which indicates that it’s probably hormones rather than genetic. Not ruling out a dietary component, but it’s obviously a complex set of symptoms with likely dozens of contributing factors.