how to initialize tables for custom dashboard pages

Permalink
I am adding a few single pages to extend the dashboard functionality and these pages need to access some custom tables through my Model.

Is there a specific place I can put a db.xml so these tables get created automatically OR do I have to handle this in my Model by checking for the tables and creating them if necessary?

 
JohntheFish replied on at Permalink Reply
JohntheFish
If you put the pages in a package, then a db.xml at the root of the package is the place for the tables.

You can also use the package installation to pre-populate data if you need to.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.