Skip to content

Commit 962a1c4

Browse files
Use bin/rails instead of global rails command [ci-skip]
1 parent 516af61 commit 962a1c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

guides/source/active_record_postgresql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,14 +579,14 @@ To use the Rails model generator for a table using UUID as the primary key, pass
579579
For example:
580580

581581
```bash
582-
$ rails generate model Device --primary-key-type=uuid kind:string
582+
$ bin/rails generate model Device --primary-key-type=uuid kind:string
583583
```
584584

585585
When building a model with a foreign key that will reference this UUID, treat
586586
`uuid` as the native field type, for example:
587587

588588
```bash
589-
$ rails generate model Case device_id:uuid
589+
$ bin/rails generate model Case device_id:uuid
590590
```
591591

592592
Indexing

guides/source/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ authentication`. Here are all of the files the generator modifies and new files
5050
it adds:
5151

5252
```bash
53-
$ rails generate authentication
53+
$ bin/rails generate authentication
5454
invoke erb
5555
create app/views/passwords/new.html.erb
5656
create app/views/passwords/edit.html.erb

0 commit comments

Comments
 (0)