# Generated by Django 1.11.11 on 2018-03-22 20:54

from django.db import migrations


def initial_station_log(apps, schema_editor):
    Station = apps.get_model('base', 'Station')
    StationStatusLog = apps.get_model('base', 'StationStatusLog')
    for station in Station.objects.all():
        StationStatusLog.objects.create(station=station, status=station.status)


class Migration(migrations.Migration):

    dependencies = [
        ('base', '0037_stationstatuslog'),
    ]

    operations = [
        migrations.RunPython(initial_station_log),
    ]
