File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
railties/lib/rails/generators/rails/app/templates/config/databases Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,23 @@ default: &default
15
15
pool: <%%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
16
16
username: root
17
17
password:
18
- <% if database.socket -%>
19
- socket: <%= database.socket %>
20
- <% else -%>
21
18
host: <%%= ENV.fetch("DB_HOST") { "<%= database.host %>" } %>
22
- <% end -%>
23
19
24
20
development:
25
21
<<: *default
22
+ <% if database.socket -%>
23
+ socket: <%= database.socket %>
24
+ <% end -%>
26
25
database: <%= app_name %>_development
27
26
28
27
# Warning: The database defined as "test" will be erased and
29
28
# re-generated from your development database when you run "rake".
30
29
# Do not set this db to the same as development or production.
31
30
test:
32
31
<<: *default
32
+ <% if database.socket -%>
33
+ socket: <%= database.socket %>
34
+ <% end -%>
33
35
database: <%= app_name %>_test
34
36
35
37
# As with config/credentials.yml, you never want to store sensitive information,
You can’t perform that action at this time.
0 commit comments