def switch_to!(version, append: Logidze.append_on_undo)
      return false unless at_version(version)

      if append && version < log_version
        update!(log_data.changes_to(version: version))
      else
        at_version!(version)
        self.class.without_logging { save! }
      end
    end
def switch_to!(version, append: Logidze.append_on_undo)
      return false unless at_version(version)

      if append && version < log_version
        update!(log_data.changes_to(version: version))
      else
        at_version!(version)
        self.class.without_logging { save! }
      end
    end
Restore record to the specified version.
 Return false if version is unknown.