method
implicit_order_column=
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::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]`.