Reputation: 3516
My understanding of the conventions I'm currently dealing with is as follows:
Model names should be in TitleCaps.
Variable names should be lower_cased_and_under_scored.
Associations should be to the singular version of the foreign table name with _id appended, e.g. user_uploaded_picture_id
Upvotes: 1
Views: 77
Reputation: 31467
Multiple questions in one :)
model_name
and ModelName
are accepted and generates the correct model and table names.Upvotes: 1