migration bugfix

I added fix to migration template, so it is possible to rollback it!