I am currently using postgresql for a database.
postgresql
I come from a more rails background where we create a migration and then run rake db:migrate to transfer the database.
rails
rake db:migrate
How can I do something like this in sails.js ? I need?
sails.js
With the config/models.js file unchanged, each time you sails lift , it will offer you one of three possible options, described in detail in the documents :
config/models.js
sails lift
safe
alter
drop
rake db: drop db:migrate
It is recommended to use only safe in the production process and perform manual migration or using one of the following modules (incomplete list):
In development, however, you can usually modify your config/models.js file to set the migrate attribute in the alter setting.
migrate