lib/rubocop/cop/rails/order_by_id.rb in rubocop-rails-2.14.2 vs lib/rubocop/cop/rails/order_by_id.rb in rubocop-rails-2.15.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
module RuboCop
module Cop
module Rails
- # This cop checks for places where ordering by `id` column is used.
+ # Checks for places where ordering by `id` column is used.
#
# Don't use the `id` column for ordering. The sequence of ids is not guaranteed
# to be in any particular order, despite often (incidentally) being chronological.
# Use a timestamp column to order chronologically. As a bonus the intent is clearer.
#