NOT NULL constraint failed: new__BRS_user.tables_id

Когда я пытаюсь перенести модель User, появляется NOT NULL constraint failed: new__BRS_user.tables_id ошибка

В моей модели нет поля с именем tables, оно было удалено уже давно.

class User(Model):
    id = models.AutoField(primary_key=True)
    first_name = models.CharField(max_length=60)
    second_name = models.CharField(max_length=60)
    third_name = models.CharField(max_length=60)
    email = models.CharField(max_length=320, unique=True)
    password = models.CharField(max_length=127)
    is_admin = models.BooleanField(default=False)
    is_student = models.BooleanField(default=True)
    is_teacher = models.BooleanField(default=False)
    input = models.OneToOneField(Input, on_delete=models.CASCADE, null=True)
    Class = models.IntegerField()
Вернуться на верх