Find an understanding significant other (preferably before this problem arises). My girlfriend moved to the other side of the continent less than a month after we started dating, with my encouragement, because it was the right thing for her to do at the current point in her career. Obviously there's a certain amount of reciprocity involved -- she'll equally understand if I need to do what's right for my career, even if it makes our relationship a bit more difficult at some point.