title: How to fix Migrations Error , While migrating My Models
body: <p>While using the command in CLI, for migrating my Models created in Django</p>
  
  <pre><code>python manage.py migrate
  </code></pre>
  
  <p>The CLI Shows an error</p>
  
  <pre><code>__init__() missing 1 required positional argument: 'on_delete'
  </code></pre>
  
  <p>This is the code:</p>
  
  <pre><code>from django.db import models
  
  class Topic(models.Model):
  
      top_name = models.CharField(max_length=264,unique=True)
  
      def __str__(self):
          return self.top_name
  
  class Webpage(models.Model):
  
      topic = models.ForeignKey(Topic)
      name = models.CharField(max_length=264,unique=True)
      url = models.URLField(unique=True)
  
      def __str__(self):
          return self.name
  
  class AccessRecord(models.Model):
  
      name = models.ForeignKey(Webpage)
      date = models.DateField()
  
      def __str__(self):
          return str(self.date) 
  </code></pre>