Skip to content

Mongoid and using where #116

@Bartuz

Description

@Bartuz

Using mongoid I can't find objects with via enums.

Post.create(status: pending)
=> #<Calculation _id: 560c51a3cdea875eb5000000, status_cd: 0>
Post.where(status: :pending).count
=> 0
Post.where(status_cd: 0).count
=> 1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions