@@ -0,0 +1,694 @@
+# -*- coding: utf-8 -*-%0A# Generated by Django 1.10.8 on 2018-12-19 15:21%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations%0A%0A%0Adef remove_accounts(apps, schema_editor):%0A    PayoutAccount = apps.get_model('payouts', 'PayoutAccount')%0A    ProjectPhase = apps.get_model('bb_projects', 'ProjectPhase')%0A%0A    phases = ProjectPhase.objects.filter(%0A        slug__in=('plan-needs-work', 'plan-submitted', 'plan-new')%0A    )%0A    PayoutAccount.objects.filter(project__status__in=phases).delete()%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        ('payouts', '0016_auto_20181215_2016'),%0A    %5D%0A%0A    operations = %5B%0A        migrations.RunPython(remove_accounts)%0A    %5D%0A

Make sure we delete all payoutaccounts from new projects so that they will need submit a stripeaccount.