generate migration checks if migration exists

The pobject generator checks now if a migration exists.
If so it will print an error and stop.