I've experimented with K for my migraines. The relief only lasts as long as the ketamine, and then the pain comes back.
The best thing for pain IME is LSD or mushrooms. Something about how it affects the circulatory system brings big relief. I can't use it while a migraine is in progress but it prevents them like nothing else.