Updated migration command to use application environment.