1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update documentation for setting up database tests (#37475)

[ci skip]
This commit is contained in:
Dalto Curvelano 2019-12-08 06:06:35 +04:00 committed by Ryuta Kamizono
parent 9024fa31e2
commit b4ee2d5f65

View file

@ -381,9 +381,19 @@ $ SEED=15002 bundle exec ruby -w -Itest test/mail_layout_test.rb
First, create the databases you'll need. You can find a list of the required
table names, usernames, and passwords in `activerecord/test/config.example.yml`.
For MySQL and PostgreSQL, running the SQL statements `create database
activerecord_unittest` and `create database activerecord_unittest2` is
sufficient. This is not necessary for SQLite3.
For MySQL and PostgreSQL, it is sufficient to run:
```bash
$ cd activerecord
$ bundle exec rake db:mysql:build
```
Or:
```bash
$ cd activerecord
$ bundle exec rake db:postgresql:build
```
This is not necessary for SQLite3.
This is how you run the Active Record test suite only for SQLite3: