def move_transport_entries(apps, schema_editor):
    """Move old transport entries to new model."""
    pf_Transport = apps.get_model('modoboa_postfix_autoreply', 'Transport')
    Transport = apps.get_model('transport', 'Transport')
    to_create = []
    for old_transport in pf_Transport.objects.all():
        to_create.append(Transport(pattern=old_transport.domain, service=
            'autoreply'))
    Transport.objects.bulk_create(to_create)
