diff --git a/packages/strapi-bookshelf/lib/index.js b/packages/strapi-bookshelf/lib/index.js index 8c46e42d4a..f41098a641 100755 --- a/packages/strapi-bookshelf/lib/index.js +++ b/packages/strapi-bookshelf/lib/index.js @@ -353,8 +353,10 @@ module.exports = function(strapi) { type = definition.client === 'pg' ? 'integer' : 'int'; break; case 'float': + type = 'double'; + break; case 'decimal': - type = attribute.type; + type = 'decimal'; break; case 'date': case 'time':