No need to use ENV to change the Gemfile. You can use the bundle config
local feature
Less strict rails version