@@ -0,0 +1,1230 @@
+# -*- coding: utf-8 -*-%0A# Generated by Django 1.9.13 on 2017-10-19 11:20%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations, models%0Aimport django.db.models.deletion%0Aimport modelcluster.fields%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        ('wagtail_personalisation', '0012_remove_personalisablepagemetadata_is_segmented'),%0A        ('gem', '0020_profiledatarule'),%0A    %5D%0A%0A    operations = %5B%0A        migrations.CreateModel(%0A            name='CommentCountRule',%0A            fields=%5B%0A                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),%0A                ('operator', models.CharField(choices=%5B(b'eq', 'equals'), (b'gt', 'greater than'), (b'lt', 'less than')%5D, default=b'eq', max_length=3, verbose_name='operator')),%0A                ('count', models.IntegerField()),%0A                ('segment', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='gem_commentcountrule_related', related_query_name='%25(app_label)s_%25(class)ss', to='wagtail_personalisation.Segment')),%0A            %5D,%0A            options=%7B%0A                'verbose_name': 'Comment count rule',%0A            %7D,%0A        ),%0A    %5D%0A

Add migration for the segment