Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save philsof/3ba9fb3c352c7ccf1d06 to your computer and use it in GitHub Desktop.
Save philsof/3ba9fb3c352c7ccf1d06 to your computer and use it in GitHub Desktop.
Naming conventions for a many-to-many join table and model in rails

Migration table naming convention: groups_users

Migration file naming convention (the part of the file name that is not automatically generated): create_groups_users

Model class naming convention: GroupsUser

Model file naming convention: groups_user.rb

@mollerhoj
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment