# Automatically generate models again

**URL:** <https://community.forestadmin.com/t/automatically-generate-models-again/2450>\
**Category:** Help me!\
**Created:** [May 7, 2021, 11:32am UTC](https://community.forestadmin.com/t/automatically-generate-models-again/2450 "2021-05-07T11:32:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![forestdan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/forestdan/32/3607_2.png) [@forestdan](https://community.forestadmin.com/u/forestdan)\
**Post date:** [May 7, 2021, 11:32am UTC](https://community.forestadmin.com/t/automatically-generate-models-again/2450/1 "2021-05-07T11:32:41Z")

</div>

Hi,

When ForestAdmin was first setup, it automatically connected to my SQL database and generate the project template which includes the /models directory.

Since then I’ve done a number of migrations on the database, so I’m wondering is there an easy way to have Forest update that directory again?

Thanks

---

<div class="post-metadata">

**Author:** ![anon94532230](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@anon94532230](https://community.forestadmin.com/u/anon94532230)\
**Post date:** [May 7, 2021, 11:40am UTC](https://community.forestadmin.com/t/automatically-generate-models-again/2450/2 "2021-05-07T11:40:12Z")

</div>

Hi @forestdan !  
If you used lumber to generate your models, you can update them via the `lumber update` command.  
you can read more about this [here](https://docs.forestadmin.com/documentation/reference-guide/models#updating-your-models-automatically) or watch [this tutorial](https://www.youtube.com/watch?v=9I2aWQ9E1Rc).
