We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1742e3 commit ed0869cCopy full SHA for ed0869c
1 file changed
default.rb
@@ -194,6 +194,23 @@
194
rails: --skip-bundle --database=postgresql
195
CODE
196
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
209
210
211
212
213
214
# Update Ruby version in the Gemfile
215
gsub_file 'Gemfile', /^ruby .*$/, 'ruby \'3.1.2\''
216
git add: '.'
0 commit comments