mirror of
https://github.com/django/django.git
synced 2025-11-19 11:15:44 +00:00
Some checks failed
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
23 lines
726 B
Python
23 lines
726 B
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
operations = [
|
|
migrations.CreateModel(
|
|
"Author",
|
|
[
|
|
("id", models.BigAutoField(primary_key=True)),
|
|
("name", models.CharField(max_length=255)),
|
|
("slug", models.SlugField(null=True)),
|
|
("age", models.IntegerField(default=0)),
|
|
("silly_field", models.BooleanField(default=False)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
"Tribble",
|
|
[
|
|
("id", models.BigAutoField(primary_key=True)),
|
|
("fluffy", models.BooleanField(default=True)),
|
|
],
|
|
),
|
|
]
|