You don't need to lock version of Rails here. You have version locked in Gemfile.lock.