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

feat: multiplayer todos #133

Merged
merged 4 commits into from
Nov 2, 2024
Merged

feat: multiplayer todos #133

merged 4 commits into from
Nov 2, 2024

Conversation

adnjoo
Copy link
Owner

@adnjoo adnjoo commented Nov 2, 2024

#104

Summary of Pull Request

Changed Files:

  1. app/models/note.rb
    • Added methods for managing collaborators (add/remove).
    • Modified the association to belongs_to :owner, class_name: "User", foreign_key: :user_id.
    • Added has_many :notes_users and has_many :users, through: :notes_users.
  2. app/models/notes_user.rb
    • New model created with associations to Note and User.
  3. app/models/user.rb
    • Updated associations to include has_many :notes_users and has_many :notes, through: :notes_users.
    • Added has_many :owned_notes, class_name: "Note", foreign_key: :user_id.

@adnjoo adnjoo merged commit b0c7d94 into main Nov 2, 2024
3 checks passed
@adnjoo adnjoo deleted the multiplayer branch November 2, 2024 16:54
@adnjoo adnjoo mentioned this pull request Nov 2, 2024
18 tasks
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.

1 participant