title: django.db.migrations.exceptions.InconsistentMigrationHistory issue after creating my own custom user model
body: <p>i have created my own custom user profile model in django and when i tried to run  migrations &amp; migrate command i'm coming up with an error<br>
  as</p>
  
  <pre><code>django.db.migrations.exceptions.InconsistentMigrationHistory: Migration authtoken.0001_initial is applied before its dependency profiles_api.0001_initial on database 'default'
  </code></pre>
  
  <p>here is my models.py </p>
  
  <pre><code>from django.db import models
  from django.contrib.auth.models import AbstractBaseUser
  from django.contrib.auth.models import PermissionsMixin
  from django.contrib.auth.models import BaseUserManager
  # Create your models here.
  class UserProfileManager(BaseUserManager):
      def create_user(self,email,name,password=None):
          if not email:
              raise ValueError("email is required")
          email=self.normalize_email(email)
          user=self.model(email=email,name=name)
  
          user.set_password(password)
          user.save(using=self._db)
          return user
      def create_superuser(self,email,name,password):
          """creates new super user with details """
  
          user=self.create_user(email,name,password)
          user.is_superuser=True
          user.is_staff=True
          user.save(using=self._db)
          return user
  
  class UserProfiles(AbstractBaseUser,PermissionsMixin):
      email=models.EmailField(max_length=255,unique=True)
      name=models.CharField(max_length=255)
      is_active=models.BooleanField(default=True)
      is_staff=models.BooleanField(default=False)
      objects=UserProfileManager()
  
      USERNAME_FIELD='email'
      REQUIRED_FIELD=['name']
      def get_fullname(self):
          return self.name
      def get_shortname(self):
          return self.name
      def __str__ (self):
          return self.email
  </code></pre>
  
  <p>in setting i have added <code>AUTH_USER_MODEL='profiles_api.UserProfiles'</code>  </p>
  
  <p>and i have tried to remove my initial database like 000init.py files and check if this could work </p>
  
  <p>any kind of help is appreciated 
  thanks in advance </p>