LoginSignup
15
12

More than 5 years have passed since last update.

rails db:create でデータベースが作れる

Posted at

コマンド叩くとconfig/database.ymlの設定に応じてデータベースを作ってくれる。

$ rails db:create
$ psql -l
            Name             | Owner | Encoding |   Collate   |    Ctype    | Access privileges
-----------------------------+-------+----------+-------------+-------------+-------------------
 hoge_rails_development | taku  | UTF8     | ja_JP.UTF-8 | ja_JP.UTF-8 |
 hoge_rails_test        | taku  | UTF8     | ja_JP.UTF-8 | ja_JP.UTF-8 |

知らなかった...

15
12
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
15
12