My ds gets a variant of migraines, and he takes Topomax.

My understanding is that migraines are a genetic neurological disease; thus, the cause is genetic. Am I wrong?