0
1

More than 3 years have passed since last update.

【プログラミング初心者】Rails6をダウングレードしたい

Posted at

★実現したいこと

2020年3月現在、Macのローカル環境で【rails -v】を行うと
【rails '6.0.2.1'】がデフォルトとなっています。

アプリケーション作成の都合上、上記を【rails '5.2.1'】にダウングレードする必要がありました。

★試したがうまくいかなかったこと
①gem uninstall rails

②gem uninstall railties -v '6.0.2.1'

①→②の順番で行うも、rails -vするとまだ'6.0.2.1'のまま・・・

★解決策
sudo gem uninstall railties -v '6.0.2.1' --force

上記コマンドを実行したところ、無事Rails6がアンインストールできました。
あとはこれまでと同様の方法で、Rails のバージョンを指定し、インストールするのみです。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1