Since it helps to drink water when you are suffering from migraines, consuming foods like watermelons, carrots, cucumber, and celery can also work in your favor. Dehydration is one of the leading causes of headaches, be sure to keep your water level in check.