Skip to content

Add table names to ActiveRecord scopes to make available after joins #71

@GeorgLink

Description

@GeorgLink

Run:

Offer.joins(issue: :repo).where(repos: {uuid: proj_uuid}).unassigned

Expected behavior: only show unassigned issues in specified repository.

Actual behavior: error message that column uuid is ambiguous.

Solution: add the table name offers to the scope that defines .unassigned

Note: This issue might exist in other scopes as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions