You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And we want to query records that are either active or pending. It doesn't seem that there's a shortcut for doing this yet. I think this can be implemented as part of the solution suggested in #95
So, we can do something like the following:
Item.where_with_enum(status: [:active, :pending])
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
Sorry if I've missed it but I haven't found any info for easily querying using "or" conditions.
Let say we have:
as_enum :status, { active: 0, pending: 1, declined: 11 }
And we want to query records that are either active or pending. It doesn't seem that there's a shortcut for doing this yet. I think this can be implemented as part of the solution suggested in #95
So, we can do something like the following:
Item.where_with_enum(status: [:active, :pending])
Thanks
The text was updated successfully, but these errors were encountered: