Fix migration for get_or_create.