From: Juan Zanos Date: 2009-04-04T04:35:50+09:00 Subject: Re: Can't find table with ActiveRecord in different thread. On 3 avr. 09, at 15:29, David Masover wrote: > On Friday 03 April 2009 11:05:21 Juan Zanos wrote: >> Hi, I'm not sure if this is a ruby question or a rails question. If >> I create an ActiveRecord table > > Rails question. > >> in one thread I can't find it in >> another thread, which I'd like to be able to do. > > If you have a question about threading, that _might_ be a Ruby > question. But > the way Rails deals with threading is certainly a Rails question. > > But while you're here... Why do you need this? Normally, tables are > created > inside a migration, after which you restart the server. > I'm not using rails, just ActiveRecord. Foo.find works in the thread that creates the tables. I get the message "Could not find table 'foos' " in other threads.