Moved migrate_engine to the upgrade_method