def migrate_customers(apps, schema_editor):
    cursor = connection.cursor()
    if "payments_customer" in connection.introspection.table_names():
        cursor.execute("SELECT user_id, stripe_id, date_purged FROM payments_customer")
        Customer = apps.get_model("pinax_stripe", "Customer")
        for row in cursor.fetchall():
            Customer.objects.create(
                user_id=row[0],
                stripe_id=row[1],
                date_purged=row[2]
            )
dataset/ETHPy150Open pinax/pinax-stripe/pinax/stripe/migrations/0002_auto_20151205_1451.py/migrate_customers/original