dbをpostgresqlを使おうとして『rails new 〜〜』をしようとしたら
bundler: failed to load command: rails
can't find executable rails for gem railties. railties is not currently included in the bundle, perhaps you meant to add it to your Gemfile?
みたいなエラーが発生。
解決策?
やってみて解決した方法。
コンソール
$ bundle add rails
$ bundle install --path vendor/bundle
上記コマンドをコンソールで入力したら解決。
bundle exec rails new アプリ名 . -d postgresql
その解決策になりそうなこと
PostgreSQLをインストール
最新のバージョンをインストール
brew install postgresql
バージョンの指定をしてインストール
brew install postgresql@10
その後にbundle installを実行
bundle install