Skip to content

Commit

Permalink
Merge pull request #41509 from m-antis/main
Browse files Browse the repository at this point in the history
use proper style name snake_form for table naming convention [ci-skip]
  • Loading branch information
jonathanhefner committed Feb 23, 2021
2 parents e2e34ea + 0b2a8c2 commit 73c0266
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions guides/source/active_record_basics.md
Expand Up @@ -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`).
Expand Down

0 comments on commit 73c0266

Please sign in to comment.