dm-postgres-types 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dm-postgres-types.rb +2 -2
- data/lib/dm-postgres-types/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41186a22677f88a3295621deb3044ce5ef9b9691
|
4
|
+
data.tar.gz: 722f25c14d97f0b4f81c8d99d4e0cf1b9d587704
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5862e5f5e5ff4195a43c8ba22e86f3763b42c58952f1fe82247cebe454da0021d00b33418065fe04efffbdd4bac8cc39c30da8287e9100a3d7a084faef2177e
|
7
|
+
data.tar.gz: 4480d05521ccee665aa95a76c064e0a2c5bf109326fb5f2af77df3eebfee71b6613b6e17bad6c6c063a4b2f20ac2de88382090f1c382a630f97dd44b0636f9d9
|
data/lib/dm-postgres-types.rb
CHANGED
@@ -22,10 +22,10 @@ module DataMapper
|
|
22
22
|
def property_schema_hash(property)
|
23
23
|
schema = super
|
24
24
|
|
25
|
-
if property.kind_of?(Property::
|
25
|
+
if property.kind_of?(Property::PgNumericArray)
|
26
26
|
schema[:primitive] = "#{schema[:primitive]}(#{property.precision},#{property.scale})[]"
|
27
27
|
schema[:precision] = schema[:scale] = nil
|
28
|
-
elsif property.kind_of?(Property::
|
28
|
+
elsif property.kind_of?(Property::PgArray)
|
29
29
|
schema[:primitive] = "#{schema[:primitive]}[]"
|
30
30
|
schema[:length] = nil
|
31
31
|
elsif property.kind_of?(Property::PgJSON)
|