func (m *GormCodebaseRepository) Create(ctx context.Context, codebase *Codebase) error {
	defer goa.MeasureSince([]string{"goa", "db", "codebase", "create"}, time.Now())
	if codebase.ID == uuid.Nil {
		codebase.ID = uuid.NewV4()
	}

	if err := m.db.Create(codebase).Error; err != nil {
		goa.LogError(ctx, "error adding Codebase", "error", err.Error())
		return errs.WithStack(err)
	}

	return nil
}
// Create creates a new record.
Create creates a new record.
// Create creates a new record .
func (m *GormCodebaseRepository) Create(ctx context.Context, codebase *Codebase) error {
	defer goa.MeasureSince([]string{"goa", "db", "codebase", "create"}, time.Now())
	if codebase.ID == uuid.Nil {
		codebase.ID = uuid.NewV4()
	}
	if err := m.db.Create(codebase).Error; err != nil {
		goa.LogError(ctx, "error adding Codebase", "error", err.Error())
		return errs.WithStack(err)
	}
	return nil
}
func ( m * GormCodebaseRepository ) Create ( ctx context . Context , codebase * Codebase ) error { defer goa . MeasureSince ( [ ] string { " " , " " , " " , " " } , time . Now ( ) ) if codebase . ID == uuid . Nil { codebase . ID = uuid . NewV4 ( ) } if err := m . db . Create ( codebase ) . Error ; err != nil { goa . LogError ( ctx , " " , " " , err . Error ( ) ) return errs . WithStack ( err ) } return nil }
Create creates a new record.
Create creates a new record .