lib/pg_graph/inflector.rb in pg_graph-0.1.7 vs lib/pg_graph/inflector.rb in pg_graph-0.1.8
- old
+ new
@@ -87,10 +87,10 @@
when "character varying", "varchar", "text", "uuid", "xml"; String
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 "json jsonb"; Hash
when "bytea"; String
when "timestamp", "timestamp without time zone"; Time
when /^_/; Array
else
raise "Unsupported postgres type: #{name.inspect} (FIXIT!)"