'Write your forwards methods here.'

def forwards(self, orm):

    for project in orm['sentry.Project'].objects.all():
        if (not project.owner):
            continue
        if (not project.team):
            team = orm['sentry.Team'].objects.create(owner=project.owner, slug=project.slug, name=project.name)
            project.team = team
            project.save()
        else:
            team = project.team
        for member in project.member_set.all():
            if (not member.user):
                continue
            tm = orm['sentry.TeamMember'].objects.create(team=team, user=member.user)
            key = orm['sentry.ProjectKey'].objects.get_or_create(project=project, user=tm.user)[0]
