I have read Wikipedia article on Genetics of migraine headaches and I don't buy it
Because genetics influence susceptibility to migraine, it can be shaped by evolution. Fitness-impairing disorders, including severe headache, tend to disappear as a result of natural selection, and their frequency decreases to near the rate of spontaneous mutation. However, migraine has not diminished over millions of years of evolution. Its prevalence has at least been maintained at a high level, and has even been shown to be increasing. This phenomenon suggests that a central nervous system (CNS) susceptible to severe, intermittent headache has been linked to an important survival or reproductive advantage.
the argument in wiki is equivalent to since we know that evolution is correct - it means that headaches must benefit us somehow otherwise we wouldn't have it so let's think of some reasons - which is in my opinion is a fallacy.
I could believe that this is a bad side effect of some more efficient to survival trait like being smart, (which is partially covered in same article)
Finally, migraine may be a component of imperfect central nervous system design. Evidence has suggested a dysfunction of pain-inhibitory pathways in migraine and discordant interaction between the ancient brain stem design and the more evolved neocortex.
EDIT:
I have read the meta post and answer from WYSIWYG, and I agree that they do partially answer my question in regard that a mild 'badness' can get past. I would argue that my question is different in a way that I am referring to specific point The trait might have a tradeoff which essentially makes no change to the overall fitness
The way I understand it is that one gets some 'perk' that is beneficial in some situations and disadvantageous in others and they cancel each-other out. (I just don't see how without some huge benefit migraines would get past). What I am asking is what so advantageous we must have gotten - that such horrible thing like migraines got through.
Are there any studies done - that incapacitating migraines are coupled with an evolutionary trait?
At present, several loci 4q21-q24, 5q21, 6p12.2-p21.1, 11q24, 14q21.2-q22.3 and 15q11-q13 linked to common forms of migraine with evidence of linkage have been reported.– Matas Vaitkevicius Jun 13 '16 at 10:42The trait might have a tradeoff which essentially makes no change to the overall fitness.. What I am asking is with which trait did we get migraines (that was so great that even such incapacitating thing like migrenes got past). If you think I should change the wording, please just say so. Thanks. – Matas Vaitkevicius Jun 13 '16 at 11:05