Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Many to Many Relationship #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ASPhillips8
Copy link

Created a User table through migrate. Updated Reviews table to have user_id column. Updated review class to use belongs_to users. Updated game class to use method of has_many with argument of users and through reviews method. Created User class to use method of has_many with argument of reviews. Used has_many method with arguments of games and through reviews method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants