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
(cherry picked from commit cb1aaba)
  • Loading branch information
elia committed Dec 3, 2024
1 parent 3765620 commit 6623435
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 6623435

Please sign in to comment.