Skip to content

Commit

Permalink
Generate the sandbox using the version of Rails coming from the Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Dec 13, 2023
1 parent c4d62df commit cb1aaba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ echo "~~~> Removing the old sandbox"
rm -rf ./sandbox

echo "~~~> Creating a pristine Rails app"
rails new sandbox \
rails_version=`bundle exec ruby -e'require "rails"; puts Rails.version'`
rails _${rails_version}_ new sandbox \
--database="$RAILSDB" \
--skip-git \
--skip-keeps \
Expand Down

0 comments on commit cb1aaba

Please sign in to comment.