If you are in the US, you may be able to qualify for accommodation under a 504. In college, you have to seek out the Disability Services Coordinator, or ADA coordinator, if the first doesn't exist. But yes, migraine is a disability and you can get accommodation if it is impacting your ability to be a student.