Off the top of my head, are you doing STI with any of your models? There's an outstanding issue with the migration generator not working when trying to create a table for both the STI base and subclasses.
--Matt Jones On Oct 7, 2009, at 7:31 AM, LadyBug wrote: > > I have played with the latest Hobo version and created/mangled one > test application. I have done all sorts of things with my test app, > including creating/recreating/dumping/loading the database several > times, so my situation is not by any means pristine, but it should be > clean enough. > > However, I have a problem understanding how Hobo migrations work. > > When I try to generate the hobo migrations to an empty database I get: > > script/generate hobo_migration create_initial_tables > Mysql::Error: Table 'test_development.threats' doesn't exist: SHOW > FIELDS FROM `threats` > > Process finished with exit code 0 > > Before getting the above error I have done several cleanup things: > > a) I have dropped my _development database, and recreated it. No > tables are shown in mysql admin tool. > b) I don't have any migrations in the migrations directory. > c) I did db:migrate:reset. > d) schema.rb exists but is empty (apart from the std header stuff, > schema version number 0) > e) I have a bunch of models in my models directory which I have > created using Hobo, with fields. > > So, why does the Hobo migration think that I should have a particular > table in my empty database? > As far as I understand > http://hobocentral.net/blog/2007/07/06/so-long-migrations/ > , > the hobo_migrations command should be interactive and create the > migration and possibly > the table(s) for me. > > Now, I have also ran hobo_migration before (when the database was > populated) and it worked fine. Therefore it probably has some stale > state stored somewhere, but where? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
