rails reset gemfile.lock

C++
# In terminal
rm Gemfile.lock
bundle install

#This will generate a new Gemfile.lock
Source

Also in C++: