I am linking update'd with Rails 4.0 from accidents, how to undo?

I had the following at the top of my gemfile:

gem 'rails' 

I am using rails 3.2.x, and now that I was running bundle update , I received an upgrade to rails 4.0, which I am not ready yet.

Is it possible to simply delete the Gemfile.lock file, add the version number in the gem 'rails' in my Gemfile and re- bundle install ?

+4
source share
3 answers

yes, you can simply remove gemfile.lock and reinstall the installation, or, add the version number to the rails, and then run

 bundle update. 
+3
source

If you are using git do it.

 git checkout -- Gemfile.lock 
+2
source

Yes, you can simply delete the lock file, add the version to 'rails' and run bundle install .

AFAIK who has to do this.

0
source

Source: https://habr.com/ru/post/1492211/


All Articles