Commit 78929199 authored by Matthieu Vachon's avatar Matthieu Vachon

Tweaked a bit database.yml.erb template

 * Removed the else part for socket option. If the option is nil,
   there is no need to set a commented value.
parent d13601d7
......@@ -13,8 +13,6 @@ production:
host: <%= @host %>
<% if @socket %>
socket: <%= @socket %>
<% else %>
# socket: /tmp/mysql.sock
<% end %>
#
......@@ -31,8 +29,6 @@ development:
host: <%= @host %>
<% if @socket %>
socket: <%= @socket %>
<% else %>
# socket: /tmp/mysql.sock
<% end %>
# Warning: The database defined as "test" will be erased and
......@@ -49,6 +45,4 @@ test: &test
host: <%= @host %>
<% if @socket %>
socket: <%= @socket %>
<% else %>
# socket: /tmp/mysql.sock
<% end %>
\ No newline at end of file
<% end %>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment