Given the appropriate columnType
, MySQL and PostgreSQL will handle storing buffers for you.
module.exports = {
attributes: {
name: {
type: 'string',
},
Reference: https://gitter.im/balderdashy/sails?at=58be4b1af1a33b62758d57ea
Is there anyway that I can add a method to all routes?
Given a Sails app with two models User
and Pet
, how do we create a single controller action foo
and have it automatically run on requests for both /user/foo
and /pet/foo
?
#!/Users/scottmac/.nvm/v6.3.0/bin/node | |
/** | |
* Pre-commit hook to prevent commits that change models unless they | |
* also include a migration file. | |
* | |
* To skip, use the `--no-verify` option when committing. | |
* (useful if you just added a comment to a model) | |
*/ |
[ | |
{ | |
"with": [ | |
{ | |
"name": { | |
"type": "default", | |
"value": "extension_safety_hub_menu_notifications" | |
}, | |
"stmt": { | |
"tableList": [ |