Mark Thomas wrote in post #550700: >> well I haven't bothered to go any further back than revision 2115, >> but ERB parsing of database.yml has been in rails trunk since at least >> September 2005, maybe before then even. > > Well then I apologize. My quick test didn't work and I guess I jumped > to the conclusion. > >> > and equally; >> > ActiveRecord::Base.configurations is the hash of the database >> > connections. > > Thanks! > >> original_config = ActiveRecord::Base.configurations[RAILS_ENV || >> "development"] >> config = original_config.merge(ROOT_USER_PASS_HASH) >> ActiveRecord::Base.establish_connection(config) >> >> Rake::Task["db:migrate"].invoke >> end > > Yes! This is very close to what I need. I'll take it from here. Thank > you very much! > > - Mark.
Were you able to do this successfully? And how did you handle capistrano tasks? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f876ab60842cd05af53fdfc3325ed6ee%40ruby-forum.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.

