28 lines
849 B
Python
28 lines
849 B
Python
# Generated by Django 3.0.2 on 2020-01-30 09:56
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('cookbook', '0008_mealplan'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Unit',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=128, unique=True)),
|
|
('description', models.TextField(blank=True, null=True)),
|
|
],
|
|
),
|
|
migrations.AddField(
|
|
model_name='recipeingredients',
|
|
name='unit_key',
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='cookbook.Unit'),
|
|
),
|
|
]
|