Ubrelvy is used for treating migraines during an attack but not for preventing them. Nurtec can be taken to treat and prevent migraines. Both medications are CGRP receptor antagonists, which block the ...