strongloop/loopback-connector-postgresql — pull request #45 by slively (2014-12-13 21:56:16+00:00)
Title: allow false value for BOOLEAN NOT NULL column

For the below model property I was not able to set the value to false. When I removed the NOT NULL constraint then the field would get set to NULL. This looked correct in the API, but was wrong in the database.

"approved": {
"type": "Boolean",
"required": true,
"length": null,
"precision": null,
"scale": null,
"postgresql": {
"columnName": "approved",
"dataType": "boolean",
"dataLength": null,
"dataPrecision": null,
"dataScale": null,
"nullable": "NO"
}
}