1. from django.db import migrations, models
    
  2. 
    
  3. 
    
  4. def grow_tail(x, y):
    
  5.     """Grow salamander tail."""
    
  6.     pass
    
  7. 
    
  8. 
    
  9. def shrink_tail(x, y):
    
  10.     """Shrink salamander tail."""
    
  11.     pass
    
  12. 
    
  13. 
    
  14. class Migration(migrations.Migration):
    
  15.     initial = True
    
  16. 
    
  17.     operations = [
    
  18.         migrations.CreateModel(
    
  19.             "Salamander",
    
  20.             [
    
  21.                 ("id", models.AutoField(primary_key=True)),
    
  22.                 ("tail", models.IntegerField(default=0)),
    
  23.                 ("silly_field", models.BooleanField(default=False)),
    
  24.             ],
    
  25.         ),
    
  26.         migrations.RunPython(grow_tail, shrink_tail),
    
  27.     ]