Refactor RandomizeField

* Fix randomize arg in relationship helper
* Fix param name for RandomizeStruct
This commit is contained in:
Patrick O'brien 2016-08-15 01:32:57 +10:00
parent 6a040bc11c
commit 75e28d3f5b
3 changed files with 247 additions and 160 deletions
bdb/drivers

View file

@ -274,7 +274,7 @@ func (p *PostgresDriver) TranslateColumnType(c bdb.Column) bdb.Column {
c.Type = "null.Float64"
case "real":
c.Type = "null.Float32"
case "bit", "interval", "uuint", "bit varying", "character", "character varying", "cidr", "inet", "json", "macaddr", "text", "uuid", "xml":
case "bit", "interval", "bit varying", "character", "character varying", "cidr", "inet", "json", "macaddr", "text", "uuid", "xml":
c.Type = "null.String"
case "bytea":
c.Type = "[]byte"