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:
commit
73c0266fd6
1 changed files with 1 additions and 2 deletions
|
@ -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`).
|
||||
|
|
Loading…
Reference in a new issue