Skip to content

Commit b28c605

Browse files
committed
Add refinements
* Add .railsrc * Fix Ruby version incompatibility
1 parent 5efc24c commit b28c605

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

default.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,15 @@
187187
CODE
188188

189189
git add: '.'
190-
git commit: "-a -m 'Add Docker config to app'"
190+
git commit: '-a -m \'Add Docker config to app\''
191+
192+
file '.railsrc', <<~CODE
193+
rails: --skip-bundle --database=postgresql
194+
CODE
195+
196+
# Update Ruby version in the Gemfile
197+
gsub_file 'Gemfile', /^ruby .*$/, 'ruby \'3.1.2\''
198+
git add: '.'
199+
git commit: '-a -m \'Use Ruby 3.1.2 in the Gemfile\''
191200

192201
puts 'And we\'re done! If you have any questions, issue, or suggestions, please go to https://github.com/Code-With-Rails/rails-template to submit an issue.'

0 commit comments

Comments
 (0)