Add migrate_tenant() function