rails new アプリケーション名 -d postgresql でエラーがでるとき
ターミナルでrails new (アプリケーション名) -d postgresqlを入力すると
Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first. Type 'rails' for help.
というエラーが出ました。
翻訳すると
”他の人のディレクトリ内で新しいRailsアプリケーションを初期化できません。まずRails以外のディレクトリに変更してください。”
ということなのでcdでホームディレクトリに戻るのが良いみたいです。