Fix migrations environment