我想知道是否可以为所有帆(水线)模型全局设置" 迁移 "属性?
直接在具体模型中我能够这样做:
module.exports = {
schema: true,
migrate: 'safe', // <-- safe, drop or alter
autoCreatedAt: true,
autoUpdatedAt: true,
autoPK: true,
attributes: {
...
}
}
Run Code Online (Sandbox Code Playgroud)
但我想知道有没有办法在应用程序中全局切换迁移模式(对于所有模型.我已阅读文档,并谷歌,但没有找到我的问题的答案.
非常感谢提前!