Skip to content

Commit ed0869c

Browse files
committed
Update database.yml
1 parent e1742e3 commit ed0869c

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

default.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,23 @@
194194
rails: --skip-bundle --database=postgresql
195195
CODE
196196

197+
# Update config/database.yml development and test configs
198+
gsub_file 'config/database.yml', /^development:\n <<: \*default/, <<-CODE
199+
development:
200+
<<: *default
201+
username: postgres
202+
password: postgres
203+
host: db
204+
CODE
205+
206+
gsub_file 'config/database.yml', /^test:\n <<: \*default/, <<-CODE
207+
test:
208+
<<: *default
209+
username: postgres
210+
password: postgres
211+
host: db
212+
CODE
213+
197214
# Update Ruby version in the Gemfile
198215
gsub_file 'Gemfile', /^ruby .*$/, 'ruby \'3.1.2\''
199216
git add: '.'

0 commit comments

Comments
 (0)