Ruby on Rails Thursday, May 19, 2011

Does Rails 3 support native working with postgresql schemas, or I
should try some own solution?

I have some already-created postgresql database with 4 or somth
schemas.
By putting "schema_search_path: ejabber, public, admin, statistic"
into database.yml I told Rails that I have more than 1 schema.
When I make "rake db:schema:dump" I have tables from all 4 schemas
alphabetical with no schema-dependency.

So the question is, when I'll be ready to deploy my app on production
(via capistrano, for example), is there would be still 4 schemas in
database, or only one? How does Rails keeps knowing which table
belongs to which schema?

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment