Rails model and table naming conventions

Database class name

The table name of the database is a plural system of the class name of the model name and is named in the snake case. ** What is a snake case? **: How to write all lowercase letters and connect words with _

Model class name

The class name of the model is singular and named in camel case. ** What is camel case **: Capitalize the first letter of each word, do not use _ Writing model class is camel case and singular

Recommended Posts

Rails model and table naming conventions
About naming Rails model methods
Class and model
Rails and FormData
[Rails] Naming convention
[Rails] Model Association (Association)
I summarized the naming conventions for each Rails
Rails valid? And invalid?
Model association in Rails
Java basic naming conventions
A memorandum about table data types and commands (Rails)
Rails: I've summarized the model and database for a moment.
[Rails] N + 1 problems and countermeasures
Rails: Difference between resources and resources
Rails Posts and User Linkage
[Rails] require method and permit method
Rails "render method" and "redirect method"
rails path and url methods
rails g model Overall flow
Introducing Bootstrap and Font-Awesome (Rails)
Rails is difficult and painful! Ⅱ
Create table and add columns
[Rails] Japaneseize model attribute names
[Rails] strftime this and that
About Ruby and object model
Rails web server and application server
Naming convention when creating a new controller or model with rails