Follwoing are some steps for prevent migraine:
Keep a headache diary.
Recognize the early warning signs of a migraine
Get into a regular sleep schedule.
Manage stress.
Limit your alcohol intake.
Control your exposure to intense stimuli.
Avoid caffeine.
Exercise.
Think twice before taking hormonal medications.
Take non-prescription supplements.