Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Why is the "lexical" name of the project "accounts_projects", instead of "employees_projects"?
At around 6:30, Hampton has to specify the name of the table using the :join symbol since it defaults to accounts_projects, not "employees_projects" as he specified in his migration.
Why is it defaulting to accounts_projects? Since Employee inherits from Account, does Rails just go to the top of the inheritance and select that name?
Also, why does it default to "accounts_projects" instead of "projects_accounts"? It's not entirely relevant for this video because he has to change the name anyways, but that got me into trouble with a project I've been working on, and I don't know why the default is one way or the other.