Migraines can be very infuriating to have.  They differ from normal headaches in many ways such that they can last 72 hours!  Have you been unlucky to experience one of those?
Yeah they are the worst the pain can get really intense to where you have to take medication
Yeah medication like ibuprofin can alleviate migraines, but also a change in behavior can reduce them too!   Avoid the triggers if you know them.
What can be something that triggers a migrane?
Well it depends on the person.  Unfortunately the underlying mechanisms of migraines are not 100% known, but for me personally overthinking triggers my migraines and poor nutrition (deficiency in magnesium according to my doctor)
Yeah  i always make sure to make my nutrition a priotiry, although migranes dont happen often to me what about youy
Recently I haven't had one in about a year but I'd used to get them about 3 times a week over the course of 2 years.   Changing my lifestyle helped a lot!   
wow that must have been horrible did you take anything to reduce the pain?
the brain.
Initial recommended treatment is with simple pain medication such as ibuprofen and paracetamol (acetaminophen) for the headache, medication for the nausea, and the avoidance of triggers. Specific medications such as triptans or ergotamines may be used in those for whom simple pain medications are not effective. Caffeine may be added to the above. A number of medications are useful to prevent attacks including metoprolol, valproate, and topiramate.
Globally, approximately 15% of people are affected by migraines. It most often starts at puberty
evidence of harm from their use in this population to support this caution. They are not addictive, but may cause medication-overuse headaches if used more than 10 days per month.
Management Ergotamines.
Ergotamine and dihydroergotamine are older medications still prescribed for migraines, the latter in nasal spray and injectable forms. They appear equally effective to the triptans and experience adverse effects that typically are benign. In the most severe cases, such as those with status migrainosus, they appear to be the most effective treatment option. They can