mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix rules with same priority being sorted non-deterministically (#20623)
This commit is contained in:
parent
6da9df774e
commit
2e2ba39abf
@ -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 New Issue
Block a user