summaryrefslogtreecommitdiff
path: root/tests/commands_sql_migrations/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/commands_sql_migrations/models.py')
-rw-r--r--tests/commands_sql_migrations/models.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/commands_sql_migrations/models.py b/tests/commands_sql_migrations/models.py
new file mode 100644
index 0000000000..78ad722307
--- /dev/null
+++ b/tests/commands_sql_migrations/models.py
@@ -0,0 +1,10 @@
+from django.db import models
+
+
+class Comment(models.Model):
+ pass
+
+
+class Book(models.Model):
+ title = models.CharField(max_length=100, db_index=True)
+ comments = models.ManyToManyField(Comment)