code: def restore(self, url):
          
          self._run(
              [
                  "heroku",
                  "pg:backups:restore",
                  "{}".format(url),
                  "DATABASE_URL",
                  "--app",
                  self.name,
                  "--confirm",
                  self.name,
              ]
          )
docs: Restore the remote database from the URL of a backup.