mysql - How to write database migration in sails.js application -
i tried using https://github.com/building5/sails-db-migrate module creating migrations did not run correctly. table used generated few columns missing. there better way create , run migrations? sorry new sails, migrated php.
so, turn out stupid think need module write migration in sails. turn out on sails lift application automatically creates table attributes of model.
but on trying realized waterline module takes care of not create foreign-key constraints of now.they still working on it.
if using nosql db can use associations http://sailsjs.org/#!/documentation/concepts/orm
Comments
Post a Comment