Which foods help prevent migraines?

Food is one of the possible triggers of migraines. As a result, some people who get migraines may benefit from eating or avoiding certain types of food.