def METHOD_NAME(self, data, description):
    """
    Write migration data. Requires a description.
    Parameters
    ----------
    data : dict
        Migration data.
    description : str
        Description of the migration.
    """
    try:
        self.register()
        migrations[self.name]["description"] = description
    except:
        self.register(description=description)
    filepath = os.path.join(self._intermediate_dir, self.filename + ".json")
    JsonWrapper.dump(data, filepath)