Modified automigrate to work on all apps not just resources