Moved unicorn:upgrade outside of loop