[Rails] Different DB connections for migrations vs. running app.

Wes Gamble weyus at att.net
Tue Aug 8 21:19:49 GMT 2006


All,

I've run into a situation where I want the owner of my DB tables to be 
different than the user that accesses them during application runtime.

I believe that I can just set up another DB connection profile (with a 
name other than "production") in database.yml and then pass that as 
RAILS_ENV to db:migrate instead of "production".

Anyone see any problems with this?

Yay - deployment issues.

Wes

-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list