Fix rules with same priority being sorted non-deterministically (#20623)
This commit is contained in:
parent
ca6df7a68c
commit
12b819c78c
1 changed files with 1 additions and 1 deletions
|
@ -18,5 +18,5 @@ class Rule < ApplicationRecord
|
||||||
|
|
||||||
validates :text, presence: true, length: { maximum: 300 }
|
validates :text, presence: true, length: { maximum: 300 }
|
||||||
|
|
||||||
scope :ordered, -> { kept.order(priority: :asc) }
|
scope :ordered, -> { kept.order(priority: :asc, id: :asc) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue