You can also try something like this:
module.exports = {
// migrate: 'alter', // adds and/or removes columns on changes to the schema
// migrate: 'drop', // drops all your tables and then re-creates them. All data is deleted.
// migrate: 'safe', doesn't do anything on sails lift- for use in production.
attributes: { /* ... */ }
};
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…