lib/dm-pg-json.rb in dm-pg-json-0.1.1 vs lib/dm-pg-json.rb in dm-pg-json-0.2.0
- old
+ new
@@ -8,10 +8,10 @@
module DataMapper
module Migrations
module PostgresAdapter
def property_schema_hash(property)
schema = super
-
+
if property.kind_of?(Property::PgJSON)
schema.delete(:length)
end
schema