read correct attribute in migration

Fixes the validation error on deployment