I just uninstalled ImageMagick, then reinstalled it.
Then uninstalled RMagick and reinstalled it.
Then the error messages said that a number of gems were missing…so
I reinstalled them.
Next, I was getting the error on a completely different gem
So I uninstalled that gem and reinstalled it.
Now I can actually execute my command but with an error:
$ script/generate migration create_session
WARNING: Nokogiri was built against LibXML version 2.7.8, but has
dynamically loaded 2.7.3
Gem::SourceIndex#search support for Regexp patterns is deprecated, use