Period Migraines¿

I've been having 2-3 crippling migraines the week before my period for almost 6 months. It's starting to affect my grades, as I am missing 3-6 days almost 2 times a month. Has anybody else gone through something similar? If so, how do you deal with it?