Reginaldo Junior
2014-Jun-01 19:14 UTC
Feature request: AR namespace for schemas in queries
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 rubyonrails-core+unsubscribe@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.