Created
February 7, 2017 16:24
-
-
Save erika-dike/0adb3677f3513449351c6530c7a1779f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Generated by Django 1.10.5 on 2017-02-07 12:13 | |
from __future__ import unicode_literals | |
import django.contrib.postgres.fields.jsonb | |
from django.db import migrations, models | |
def load_testfunnels_from_fixture(apps, schema_editor): | |
from django.core.management import call_command | |
call_command('loaddata', 'funnels') | |
class Migration(migrations.Migration): | |
dependencies = [ | |
('core', '0002_funnel_status'), | |
] | |
operations = [ | |
migrations.CreateModel( | |
name='TestFunnel', | |
fields=[ | |
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | |
('funnel_json', django.contrib.postgres.fields.jsonb.JSONField()), | |
('published', models.BooleanField()), | |
('name', models.CharField(max_length=256)), | |
('schema_version', models.IntegerField(default=1)), | |
], | |
), | |
migrations.RunPython(load_testfunnels_from_fixture), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment