# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('duplicable_testapp', '0005_auto_20150901_0145'),
    ]

    operations = [
        migrations.CreateModel(
            name='Relation',
            fields=[
                ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)),
                ('name', models.CharField(max_length=100)),
                ('original_version', models.ForeignKey(related_name='all_duplicates', to='duplicable_testapp.Relation', null=True)),
                ('parent_version', models.ForeignKey(related_name='direct_duplicates', to='duplicable_testapp.Relation', null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='polymorphicbase',
            name='relation',
            field=models.ForeignKey(to='duplicable_testapp.Relation', null=True),
        ),
    ]
