I am trying to write a backup/restore rake process and found the very nice one available on various sites. The problem is that we have a lot of habtm tables - model1_model2 tables - and they cause the process to fall over: Writing g_blocks... rake aborted! uninitialized constant GBlocksGSite Any ideas how to get by this? Obviously this relative data is quite important! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
If you are using MySQL I would recommend taking a look at AutoMySQLBackup. My company has used it for a couple of years. (http://sourceforge.net/projects/automysqlbackup/)> Any ideas how to get by this? Obviously this relative data is quite > important!I the lack of an AR model is causing the problem a possible workaround might be to create model classes in your backup routine that reference the HABTM tables. Aaron --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---