On 21 July 2011 00:00, sreid <[email protected]> wrote: > I've just cloned my rails app onto another PC, and I'm having a > problem getting the database set up. > > I've tried rake db:migrate, then db:create and also db:reset, but I > keep getting an SQLException "no such table". It seems this is due to > a line in an initializer which accesses one of my tables. > > Why do the db:* tasks run the initializers ? Do I need to move any db > code out of initalizers - if so, where to ?
To get you out of the hole I imagine if you manually create the db (empty) then you will probably be ok. Colin -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

