I have a live legacy system in place.
I'd like to access, and modify some of the data with hobo. However there are so many tables and fields, that to completely recreate all the models in hobo would take weeks. I'd prefer to just create models for tables as I need them. (or better yet, run a script that creates all the models based on the tables currently in the database.)
The hobo_migration script wants to drop all tables in the schema that it doesn't know about. Something I don't want.
How can I use hobo in such a legacy environment?
I'd like to access, and modify some of the data with hobo. However there are so many tables and fields, that to completely recreate all the models in hobo would take weeks. I'd prefer to just create models for tables as I need them. (or better yet, run a script that creates all the models based on the tables currently in the database.)
The hobo_migration script wants to drop all tables in the schema that it doesn't know about. Something I don't want.
How can I use hobo in such a legacy environment?
Discussion
-
http://groups.google.com/group/hobousers/browse_thread/thread/e5bd148094fc8640
Tom's answer:
You can put this in an initializer
HoboFields::MigrationGenerator.ignore_tables = ['my_table', ... ]
Then the migration generator won't want to drop them.
Tom