new_contents: # -*- coding: utf-8 -*-
  # Generated by Django 1.11.20 on 2019-02-28 16:10
  from __future__ import unicode_literals
  
  from django.db import migrations, models
  import django.db.models.deletion
  import django_extensions.db.fields
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('projects', '0040_increase_path_max_length'),
          ('contenttypes', '0002_remove_content_type_name'),
          ('builds', '0006_add_config_field'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='VersionAutomationRule',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
                  ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
                  ('priority', models.IntegerField(verbose_name='Rule priority')),
                  ('rule_arg', models.CharField(max_length=255, verbose_name='Value used for the rule to match the version')),
                  ('action', models.CharField(choices=[('activate-version', 'Activate version on match')], max_length=32, verbose_name='Action')),
                  ('action_arg', models.CharField(blank=True, max_length=255, null=True, verbose_name='Value used for the action to perfom an operation')),
                  ('version_type', models.CharField(choices=[('branch', 'Branch'), ('tag', 'Tag'), ('unknown', 'Unknown')], max_length=32, verbose_name='Version type')),
                  ('polymorphic_ctype', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='polymorphic_builds.versionautomationrule_set+', to='contenttypes.ContentType')),
                  ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='automation_rules', to='projects.Project')),
              ],
              options={
                  'ordering': ('priority', '-modified', '-created'),
                  'manager_inheritance_from_future': True,
              },
          ),
          migrations.CreateModel(
              name='RegexAutomationRule',
              fields=[
              ],
              options={
                  'proxy': True,
                  'manager_inheritance_from_future': True,
                  'indexes': [],
              },
              bases=('builds.versionautomationrule',),
          ),
          migrations.AlterUniqueTogether(
              name='versionautomationrule',
              unique_together=set([('project', 'priority')]),
          ),
      ]
  
subject: Add migration