Replies: 1 comment
-
|
Hey! 👋 This is definitely missing from the framework. I think that two possible things could be added:
These two options are not mutually exclusive. (1) makes it possible to randomize the order of records without ending up incorporating DB-specific expressions, which allows projects to remain more DB-agnostic. (2) could be a good option for more specific needs that are not supported by the framework out-of-the-box. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In rails I have a feature to order columns by
RANDOM()with sample:User.order(RANDOM()).first.Currently
orderis expecting the field references and produces the error:Beta Was this translation helpful? Give feedback.
All reactions