Juan Zanos
4/3/2009 7:36:00 PM
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.