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

Missing RepoAssignment model or incorrect association in User model #1780

Open
baxter2 opened this issue Mar 15, 2023 · 0 comments
Open

Missing RepoAssignment model or incorrect association in User model #1780

baxter2 opened this issue Mar 15, 2023 · 0 comments

Comments

@baxter2
Copy link
Contributor

baxter2 commented Mar 15, 2023

I noticed an association in the User model that seems to reference a missing model called RepoAssignment:

# app/models/user.rb
class User
  has_many :repo_assignments, through: :repo_subscriptions

which was introduced back in this commit

has_many :repo_assignments, through: :repo_subscriptions

I think User model was originally intended to have a has_many :doc_assignments, through: :repo_subscriptions association instead of has_many :repo_assignments, through: :repo_subscriptions?

However even if it was changed to has_many :doc_assignments that association ins't necessary in the app currently. So might be best to just delete it in the first place?

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

No branches or pull requests

1 participant