heroku Failed to install gems via Bundler when remove gem rails

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

Also in C++: