79408715

Date: 2025-02-03 11:58:33
Score: 0.5
Natty:
Report link

It's always better to use the plural form when doing that, because it corresponds to the table name, when you use the singualr form, rails assigns an alias so in your example it becomes,

INNER JOIN roles role ON role.user_id = users.id

See what happened there? it became an alias of the actual table name. Hope this answers your main question.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Youssef Sobhy