Rails Alterar a conexão do banco de dados
ActiveRecord::Base.establish_connection({:adapter => "mysql", :database => new_name, :host => "olddev",
:username => "root", :password => "password" })
Dull Dogfish