Skip to content

Commit

Permalink
Support to set port in Rails database.yml via custom JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbraeuer committed Jul 10, 2013
1 parent 164b74a commit df634df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rails/templates/default/database.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
username: <%= @database[:username].to_s.inspect %>
password: <%= @database[:password].to_s.inspect %>
reconnect: <%= @database[:reconnect] ? 'true' : 'false' %>
<% if @database[:port] -%>
port: <%= @database[:port].to_s.inspect %>
<% end -%>

<% end -%>
<% end %>

0 comments on commit df634df

Please sign in to comment.