# Generated by Django 3.0.7 on 2020-12-19 12:46

from django.db import migrations


def reset_default_downvotes(apps, schema_editor):
    CollectionRule = apps.get_model("collection", "CollectionRule")

    for rule in CollectionRule.objects.all():
        rule.reddit_downvotes_max = None
        rule.save()


class Migration(migrations.Migration):
    dependencies = [("collection", "0013_auto_20201219_1345")]

    operations = [migrations.RunPython(reset_default_downvotes)]
