class method
self.implicit_order_column=
Ruby on Rails 8.1.2
Since v6.0.6Signature
implicit_order_column=(column_name)
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]`.
Source
# File activerecord/lib/active_record/model_schema.rb, line 120
Defined in activerecord/lib/active_record/model_schema.rb line 120
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ModelSchema