code: func releasesCreate(db *gorm.DB, release *Release) (*Release, error) {
  	// Get the last release version for this app.
  	v, err := releasesLastVersion(db, release.App.ID)
  	if err != nil {
  		return release, err
  	}
  
  	// Increment the release version.
  	release.Version = v + 1
  
  	if err := db.Create(release).Error; err != nil {
  		return release, err
  	}
  
  	return release, nil
  }
docs: // releasesCreate creates a new Release and inserts it into the database.