I recently cloned my application from Bitbucket and checkout to a new upgrading
branch where I upgraded my application from rails 5.0.0.1 to rails 5.1.6:
$ git checkout -b upgrading
I firstly updated my Gemfile, the I ran bundle update:
$ bundle update
From the railsdiff website and from a new rails 5.1.6 application created for the purpose, I edited my old application adding or removing code and deleting or creating files, and I edited the migration files specifing a version of the class to inherit from. Then I committed my application with git before running rails app:update
:
$ git add -A
$ git commit -m 'before rails app update'
$ rails app:update
There were few changes to make, then I reset my database and ran my entire test suite:
$ rails db:migrate:reset
$ rails test
I seeded the database, launched the server and test the application graphically. Everything was fine. Finally I made a commit, switched to the master branch, squash merged the upgrading branch and finally made one last commit:
$ git add -A
$ git commit -m "work in progress"
$ git checkout master
$ git merge --squash upgrading
$ git commit -m "upgrade to Rails 5.1.6"
$ git push
Everything was fine, except when I tried to delete the upgrading
branch, because the operation failed:
$ git branch -d upgrading
error: The branch 'upgrading' is not fully merged.
If you are sure you want to delete it, run 'git branch -D upgrading'.
I know only few git basic commands, so I have no idea why this happened. I would appreciate any help.