This study is being conducted to evaluate the efficacy and tolerability of rimegepant in a population of adults that are unsuitable for triptan medications due to a previous intolerance, lack of efficacy, or contraindication (including a history of clinically-relevant cardiovascular disease). Rimegepant will be further evaluated in this population with as needed use in a 12-week, open-label extension study.