Sails.js data missing on sails lift with waterline

时间:2015-06-25 18:24:58

标签: node.js orm sails.js waterline

I am using waterline orm which comes by default with sails.js. I recently recognized that my data just goes missing in my MySQL database when I do a sails lift. My model config is alter. Did anyone face similar issues? This is scary.

1 个答案:

答案 0 :(得分:2)

将您的模型配置更改为' safe'所以重置服务器后它不会删除你的数据..