Skip to content

Commit a4dbfc0

Browse files
Use yaml code fence [ci-skip]
This changes a `bash` code fence with `cat` output to a `yaml` code fence for proper YAML syntax highlighting. This also fixes a typo in the YAML content.
1 parent 86517b0 commit a4dbfc0

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

guides/source/command_line.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,9 @@ $ rails new petstore --database=postgresql
8383
...
8484
```
8585

86-
Let's see what it put in our database configuration:
86+
Let's see what it put in our `config/database.yml`:
8787

88-
```bash
89-
$ cd petstore
90-
$ cat config/database.yml
88+
```yaml
9189
# PostgreSQL. Versions 9.3 and up are supported.
9290
#
9391
# Install the pg driver:
@@ -111,14 +109,13 @@ default: &default
111109
# https://guides.rubyonrails.org/configuring.html#database-pooling
112110
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
113111

114-
..development:
112+
development:
115113
<<: *default
116-
database: petstore_development.
114+
database: petstore_development
117115
...
118116
```
119117

120-
It generated some lines in our `database.yml` configuration corresponding
121-
to our choice of PostgreSQL for database.
118+
It generated a database configuration corresponding to our choice of PostgreSQL.
122119

123120
Command Line Basics
124121
-------------------

0 commit comments

Comments
 (0)