ruby version only
average is default for aggregate_function attribute
fix form validation error, remove size since already there