This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix no-longer-supported parameterised scope
Rails now throws an error if we `includes(:head_commit_statuses)`. Since we don't eager-load that scope anywhere, we just remove that part of the scope, and add the additional `repo_id` foreign key part to the instance method where it's used. Since we don't have the switch between eager-loading and instance method, we delete the tests for this as well since we no longer need them.
- Loading branch information
Showing
2 changed files
with
2 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters