# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2017-03-01 18:01
from __future__ import unicode_literals

import django.core.validators
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('gists', '0007_auto_20170215_1529'),
    ]

    operations = [
        migrations.RenameField(
            model_name='tree',
            old_name='last_served',
            new_name='profile_lock_heartbeat',
        ),
        migrations.AddField(
            model_name='gistsconfiguration',
            name='heartbeat',
            field=models.PositiveIntegerField(default=10, validators=[django.core.validators.MinValueValidator(1)]),
        ),
        migrations.AddField(
            model_name='gistsconfiguration',
            name='heartbeat_margin',
            field=models.PositiveIntegerField(default=5, validators=[django.core.validators.MinValueValidator(1)]),
        ),
        migrations.AddField(
            model_name='tree',
            name='profile_lock',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='tree_locks', to='gists.Profile'),
        ),
    ]
