Anecdotal, but: I know someone with relevant migraine problems did a log of everything she was eating or doing, searching for possible triggers. After a few weeks there were a couple of suspects: glutamate, chocolate, and also some legumes. Removing these worked and reduced greatly the amount and extent of the problem. Currently legumes is ok sometimes, but consuming one of the first two is almost a guaranteed episode.