

def forwards(self, orm):
    m2m_table_name = db.shorten_name('api_project_user_stars')
    db.create_table(m2m_table_name, (('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('project', models.ForeignKey(orm['api.project'], null=False)), ('user', models.ForeignKey(orm['auth.user'], null=False))))
    db.create_unique(m2m_table_name, ['project_id', 'user_id'])

dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/api/south_migrations/0008_auto_add_user_star_field_to_project.py Migration.forwards/original