Vitamins for migraines

My doctor told me to start taking vitamins for my migraines. It feels like it’s a lot to take with being pregnant and taking my prenatal too. I have to take / 500mg magnesium / 400mg b-2 / 300mg COQ-10. Does anyone else take this and what are your experiences?