Do not remove Gemfile.lock

When bundle install runs in any Rails project, bundler resolves dependencies for all gems inside the Gemfile and installs them. List of all the installed gems and their dependent gems along with gem version is stored inside the Gemfile.lock.

It’s important that Gemfile.lock is checked into the repository and should not be deleted.

Removing Gemfile.lock and running bundle install causes bundler to again go through Gemfile and resolve the dependencies freshly. This could install different gem versions than earlier gem versions and cause application to fail if any of gem APIs are changed. i.e. removing Gemfile.lock and running bundle install is an equivalent of bundle update.