def METHOD_NAME(apps, schema_editor):
    InvoiceLineItem = apps.get_model("metering_billing", "InvoiceLineItem")
    for ili in InvoiceLineItem.objects.all():
        ili.organization = ili.invoice.organization
        ili.save()