Skip to content

Commit

Permalink
Add config for dw databases
Browse files Browse the repository at this point in the history
  • Loading branch information
dznz committed Mar 8, 2013
1 parent 3f7a3f0 commit e518927
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion rails/templates/default/database.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@
password: <%= @database[:password] %>
reconnect: <%= @database[:reconnect] ? 'true' : 'false' %>

<% end -%>
<%= 'dw_' + env %>:
adapter: <%= @database[:adapter] %>
database: <%= @database[:database] + '_dw' %>
encoding: utf8
host: <%= @database[:host] || 'localhost' %>
username: <%= @database[:username] %>
password: <%= @database[:password] %>
reconnect: <%= @database[:reconnect] ? 'true' : 'false' %>

<% end -%>

0 comments on commit e518927

Please sign in to comment.