code: def model(self):
          
          MigrateHistory._meta.database = self.database
          MigrateHistory._meta.table_name = self.migrate_table
          MigrateHistory._meta.schema = self.schema
          MigrateHistory.create_table(True)
          return MigrateHistory
docs: Initialize and cache MigrationHistory model.