from __future__ import unicode_literals

from awx.main.migrations import _rbac as rbac
from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('main', '0003_rbac_changes'),
    ]

    operations = [
        migrations.RunPython(rbac.migrate_organization),
        migrations.RunPython(rbac.migrate_credential),
        migrations.RunPython(rbac.migrate_team),
        migrations.RunPython(rbac.migrate_inventory),
    ]

from __future__ import unicode_literals

from awx.main.migrations import _rbac as rbac
from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('main', '0003_rbac_changes'),
    ]

    operations = [
        migrations.RunPython(rbac.migrate_users),
        migrations.RunPython(rbac.migrate_organization),
        migrations.RunPython(rbac.migrate_credential),
        migrations.RunPython(rbac.migrate_team),
        migrations.RunPython(rbac.migrate_inventory),
        migrations.RunPython(rbac.migrate_projects),
    ]

Add migrate_users and migrate_projects to our migration plan
Add migrate_users and migrate_projects to our migration plan

  from __future__ import unicode_literals
  
  from awx.main.migrations import _rbac as rbac
  from django.db import migrations
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('main', '0003_rbac_changes'),
      ]
  
      operations = [
+         migrations.RunPython(rbac.migrate_users),
          migrations.RunPython(rbac.migrate_organization),
          migrations.RunPython(rbac.migrate_credential),
          migrations.RunPython(rbac.migrate_team),
          migrations.RunPython(rbac.migrate_inventory),
+         migrations.RunPython(rbac.migrate_projects),
      ]
  
Add migrate_users and migrate_projects to our migration plan
## Code Before:
from __future__ import unicode_literals

from awx.main.migrations import _rbac as rbac
from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('main', '0003_rbac_changes'),
    ]

    operations = [
        migrations.RunPython(rbac.migrate_organization),
        migrations.RunPython(rbac.migrate_credential),
        migrations.RunPython(rbac.migrate_team),
        migrations.RunPython(rbac.migrate_inventory),
    ]

## Instruction:
Add migrate_users and migrate_projects to our migration plan
## Code After:
from __future__ import unicode_literals

from awx.main.migrations import _rbac as rbac
from django.db import migrations


class Migration(migrations.Migration):

    dependencies = [
        ('main', '0003_rbac_changes'),
    ]

    operations = [
        migrations.RunPython(rbac.migrate_users),
        migrations.RunPython(rbac.migrate_organization),
        migrations.RunPython(rbac.migrate_credential),
        migrations.RunPython(rbac.migrate_team),
        migrations.RunPython(rbac.migrate_inventory),
        migrations.RunPython(rbac.migrate_projects),
    ]
