lib/mosql/schema.rb in mosql-0.4.1 vs lib/mosql/schema.rb in mosql-0.4.2

- old
+ new

@@ -99,13 +99,16 @@ end primary_key keys if meta[:extra_props] type = - if meta[:extra_props] == "JSON" - "JSON" + case meta[:extra_props] + when 'JSON' + 'JSON' + when 'JSONB' + 'JSONB' else - "TEXT" + 'TEXT' end column '_extra_props', type end end end