method

implicit_order_column=

Importance_1
v8.1.1 - Show latest stable - 0 notes - Class: ModelSchema
implicit_order_column= public

Sets the column(s) to sort records by when no explicit order clause is used during an ordered finder call. Useful for models where the primary key isn’t an auto-incrementing integer (such as UUID).

By default, records are subsorted by primary key to ensure deterministic results. To disable this subsort behavior, set `implicit_order_column` to `[“column_name”, nil]`.

Show source
Register or log in to add new notes.