lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/database.yml in rubber-1.13.2 vs lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/database.yml in rubber-1.14.0
- old
+ new
@@ -3,10 +3,10 @@
%>
# Sets up rails to talk to mysql-proxy load balancer running on localhost,
# which then then balances requests between sql nodes in the cluster
<%= RUBBER_ENV %>:
- adapter: mysql
+ adapter: <%= YAML::load(File.open("#{RUBBER_ROOT}/config/database.yml"))["production"]["adapter"] %>
encoding: utf8
database: <%= rubber_env.db_name %>
username: <%= rubber_env.db_user %>
password: <%= rubber_env.db_pass %>
host: 127.0.0.1