dm-persevere-adapter 0.46.0 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/persevere_adapter.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.46.
|
1
|
+
0.46.1
|
data/lib/persevere_adapter.rb
CHANGED
@@ -453,7 +453,7 @@ module DataMapper
|
|
453
453
|
if result.code == "200"
|
454
454
|
schemas = [JSON.parse(result.body)].flatten.select{ |schema| not RESERVED_CLASSNAMES.include?(schema['id']) }
|
455
455
|
schemas.each do |schema|
|
456
|
-
schema['properties']['id'] = { 'type' => "
|
456
|
+
schema['properties']['id'] = { 'type' => "serial", 'index' => true }
|
457
457
|
end
|
458
458
|
return name.nil? ? schemas : schemas[0..0]
|
459
459
|
else
|