Sync db with forest project -- add new models automatically

Hey guys,

Hope you’re doing well.
I’ve seen somewhere that new models aren’t added automatically to forest project (models folder).
Is there a script (command ?) to run to sync the models with the db ?

Thanks in advance for your response.

Have a nice day,
Nadia

“forest-express-sequelize”: “^7.0.0",
“sequelize”: “~5.15.1"

Hi @nadiab,

Indeed models files are not automatically updated and requires a manual update.

If you want to do it automatically, you can perform a lumber update command on your local environment. This should update your models according to new changes you made in your database.

You’ll just need to have a lumber version 4 or above.

Best regards,

1 Like

Thanks for your response @lamatt_v, it works !

Have a nice day

1 Like