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

Merge pull request #41509 from m-antis/main

use proper style name snake_form for table naming convention [ci-skip]
This commit is contained in:
Jonathan Hefner 2021-02-23 10:01:44 -06:00 committed by GitHub
commit 73c0266fd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,8 +79,7 @@ a class `Book`, you should have a database table called **books**. The Rails
pluralization mechanisms are very powerful, being capable of pluralizing (and
singularizing) both regular and irregular words. When using class names composed
of two or more words, the model class name should follow the Ruby conventions,
using the CamelCase form, while the table name must contain the words separated
by underscores. Examples:
using the CamelCase form, while the table name must use the snake_case form. Examples:
* Model Class - Singular with the first letter of each word capitalized (e.g.,
`BookClub`).