apps/challenges/migrations/0029_add_challenge_star.py
# -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-08-14 20:27
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("challenges", "0028_zip_configuration_models_for_challenge_creation"),
]
operations = [
migrations.CreateModel(
name="StarChallenge",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created_at", models.DateTimeField(auto_now_add=True)),
("modified_at", models.DateTimeField(auto_now=True)),
(
"challenge",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="challenges.Challenge",
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
),
],
options={"db_table": "starred_challenge"},
)
]