add backwards-compatible migration for polymorphic associations