Limit observed tables during Bake

Hi All,

I have a DB with 489 tables. As such most of the automagic goodness of baking doesn’t work. Even creating one model takes about 5 minutes if I don’t set --no-associations.

For my project, I only need to work with about 30 of those 489 tables. I’m wondering if there is a way to provide the bake functions with a list (array if you will) of tables to inspect when hooking up associations, generating controllers, etc.

Any insight would be much appreciated.

You can export those 30 tables, with some rows (20… 50? for example) into a tempral database, configure a connection to that database, and use bake with the new connection. Check the bake help