add hook after migrate