Medical-Marijuana-Effective-for-Migraine

How can medical marijuana be effective for Migraine. How medical marijuana works ?