This is achievable by setting the table in the model Bar to foo.bar, is
that what you meant?


On Sun, Jun 1, 2014 at 9:14 PM, Reginaldo Junior <[email protected]>
wrote:

> Hi. I was thinking in the possibility to set a namespace for tables in AR
> queries, so instead of setting the search path like this:
>
>       ActiveRecord::Base.connection.schema_search_path = 'foo, public'
>
> We specify the schema in the query:
>
>    select * from foo.bar;
>
>  so it could be a thread-safe solution and work with multi-thread
> environments and improve Rails support for real multi-tenant apps using
> Postgres schemas. What do you guys think?
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Mohamed Wael Khobalatte

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to