Hello , welcome to healthcare magic. Migraine
can be very disabling. It is usually precipitated by lack of sleep, skipping food, stress
, noise and excess light, dehydration
and certain foodstuffs like ice-cream, curd, sugar and chocolate. So avoiding these factors might be preventive . As for the medications you might need to see a doctor who can suggest some drugs that can be taken over a period of time to prevent migraines. Before trying out tablets try preventing an attack of migraine by avoiding the aforesaid situations. Drinking plenty of water can help. Take care !