[guide][association_basics] Fix grammar for a single example

The original text indicated that 3 examples were forthcoming, yet alas only on `Car` model was created. No `Bike` nor `Bus`. I've reworded the text so that the reader is not left in suspense for the missing examples.
This commit is contained in:
Dr Nic Williams 2020-06-22 12:08:10 +10:00 committed by GitHub
parent d6fda8e019
commit b6afb3df70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2509,7 +2509,7 @@ single database table, Rails will save in this column the name of the model that
is being saved. In our example, this can be "Car", "Motorcycle" or "Bicycle." is being saved. In our example, this can be "Car", "Motorcycle" or "Bicycle."
STI won't work without a "type" field in the table. STI won't work without a "type" field in the table.
Next, we will generate the three models that inherit from Vehicle. For this, Next, we will generate the Car model that inherits from Vehicle. For this,
we can use the `--parent=PARENT` option, which will generate a model that we can use the `--parent=PARENT` option, which will generate a model that
inherits from the specified parent and without equivalent migration (since the inherits from the specified parent and without equivalent migration (since the
table already exists). table already exists).