feat: add community contribution ranks
This commit is contained in:
13
apps/gamification/migrations/0002_scoring_epoch.py
Normal file
13
apps/gamification/migrations/0002_scoring_epoch.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from django.db import migrations
|
||||
from django.utils import timezone
|
||||
|
||||
|
||||
def create_scoring_epoch(apps, schema_editor):
|
||||
ScoringEpoch = apps.get_model("gamification", "ScoringEpoch")
|
||||
ScoringEpoch.objects.get_or_create(pk=1, defaults={"started_at": timezone.now()})
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [("gamification", "0001_initial")]
|
||||
|
||||
operations = [migrations.RunPython(create_scoring_epoch, migrations.RunPython.noop)]
|
||||
Reference in New Issue
Block a user