3 ms·
> Some relations are already plural. Say you have a class called UserFacts that store miscellaneous information about a user like age and favorite color. What w
by theonething 3y ago
> Some relations are already plural. Say you have a class called UserFacts that store miscellaneous information about a user like age and favorite color. What will you call the database table?
You change the class to singular and the database table is plural.
The class is used to instantiate an object that is one instance of the model. So it's singular.
The corresponding table is a collection of records (corresponding to instances) of the model. So it's plural.
Why is this so hard?