lib/pg_graph/inflector.rb in pg_graph-0.1.6 vs lib/pg_graph/inflector.rb in pg_graph-0.1.7

- old
+ new

@@ -83,10 +83,10 @@ # Types are both native postgres type and types from the information_schema def postgres_type2ruby_class(name) case name when "character varying", "varchar", "text", "uuid", "xml"; String - when "smallint", "integer", "int4", "int2"; Integer + when "smallint", "integer", "int8", "int4", "int2"; Integer when "double precision", "real", "float8"; Float when "numeric", "decimal"; BigDecimal when "bool", "boolean"; Boolean when "json"; Hash when "bytea"; String