1
0

More than 3 years have passed since last update.

【Ruby on Rails】rails newのときにrailsバージョンとデータベースを指定したい

Last updated at Posted at 2021-02-09

rails new railsのバージョン指定、DB指定

railsの新規プロジェクトを作成するときに、rails new [プロジェクト名]でアプリを作成すると思いますが、そのときにrailsのバージョンを指定したい時。

$rails _6.0.3.2_ new todo-app

このようにrails newの間に、railsの使いたいバージョンを追加するとできる。

databaseをなにを使うか指定したいとき

$rails _6.0.3.2_ new todo-app --database=postgresql

プロジェクト名のあとに--database=postgresqlこのようにしてdatabase名を追加する。

1
0
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
1
0