Postgres schemas as rails envs

Played around with rails on mysql a little bit. Now I’m looking at rails
on postgres, and
postgres has schemas. Wondering if it’s appropriate to create schemas
for my three db
evironments (development, test, production) rather than separate dbs?


You could, but I don’t really see any reason to. Testing
automatically creates the test database obviously, and I assume
eventually you’ll deploy to a different machine than you develop/test
on. In this case you’ll have separate DBs anyway.

Don’t know how well Rails supports schemas, I haven’t looked into it
because I’ve had no need for it. If it ain’t broke, don’t fix it I


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs