// Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method.
// This method is not required and may be deleted.
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method.
This method is not required and may be deleted.
// Validate gets run every time you call a " pop . Validate * " ( pop . ValidateAndSave pop . ValidateAndCreate pop . ValidateAndUpdate ) method . // This method is not required and may be deleted .
func (a *Activity) Validate(tx *pop.Connection) (*validate.Errors, error) {
	return validate.Validate(
		&validators.StringIsPresent{Field: a.Provider, Name: "Provider"},
		&validators.StringIsPresent{Field: a.ProviderID, Name: "ProviderID"},
		&validators.StringIsPresent{Field: a.Name, Name: "Name"},
		&validators.StringIsPresent{Field: a.Type, Name: "Type"},
		&validators.TimeIsPresent{Field: a.Datetime, Name: "Datetime"},
		&validators.IntIsPresent{Field: a.Distance, Name: "Distance"},
		&validators.IntIsPresent{Field: a.MovingTime, Name: "MovingTime"},
		&validators.IntIsPresent{Field: a.ElapsedTime, Name: "ElapsedTime"},
	), nil
}
func ( a * Activity ) Validate ( tx * pop . Connection ) ( * validate . Errors , error ) { return validate . Validate ( & validators . StringIsPresent { Field : a . Provider , Name : " " } , & validators . StringIsPresent { Field : a . ProviderID , Name : " " } , & validators . StringIsPresent { Field : a . Name , Name : " " } , & validators . StringIsPresent { Field : a . Type , Name : " " } , & validators . TimeIsPresent { Field : a . Datetime , Name : " " } , & validators . IntIsPresent { Field : a . Distance , Name : " " } , & validators . IntIsPresent { Field : a . MovingTime , Name : " " } , & validators . IntIsPresent { Field : a . ElapsedTime , Name : " " } , ) , nil }
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method.
Validate gets run every time you call a " pop . Validate * " ( pop . ValidateAndSave pop . ValidateAndCreate pop . ValidateAndUpdate ) method .