Database Relationship Types

  • One-to-One: A user has one profile (e.g., /users/1/profile).

  • One-to-Many: An author has many books (/authors/1/books).

  • Many-to-Many: Projects and team members (/projects/1/team-members)


  • Rails

    • Routes setup (BACKEND style guide) (i.e. routes.rb)

    • Controller Setup (BACKEND style guide) (e.g. projects_controller.rb)

Last updated