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

Sweep: Add HasTeams trait and ownedTeams() method to User model #71

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Jun 16, 2024

Purpose

This pull request addresses the issue where the db:seed command is failing due to the ownedTeams() method being undefined on the User model.

Description

The changes in this pull request include:

  1. Adding the HasTeams trait to the User model, which provides the necessary methods and relationships for managing teams.
  2. Defining the teams() method on the User model, which returns the teams the user belongs to.
  3. Defining the ownedTeams() method on the User model, which returns the teams the user owns.

These changes ensure that the ownedTeams() method is available on the User model, allowing the db:seed command to execute successfully.

Summary

  • Added the HasTeams trait to the User model
  • Defined the teams() method to return the teams the user belongs to
  • Defined the ownedTeams() method to return the teams the user owns

Fixes #70.


Tip

To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

This is an automated message generated by Sweep AI.

Copy link
Contributor Author

sweep-ai bot commented Jun 16, 2024

Sweep: PR Review

Author: sweep-ai[bot]
The Pull Request looks good! Sweep did not find any new issues.

@curtisdelicata curtisdelicata merged commit a46ac1c into main Jun 16, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant