Skip to content

Commit b8bd627

Browse files
authored
Merge pull request #217 from coderdojo-japan/improve-sort
Be in the same order in different environments
2 parents 8df8a78 + 4f2efca commit b8bd627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/dojo.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Dojo < ApplicationRecord
1212
serialize :tags
1313
before_save { self.email = self.email.downcase }
1414

15-
scope :default_order, -> { order(prefecture_id: :asc) }
15+
scope :default_order, -> { order(prefecture_id: :asc, id: :asc) }
1616

1717
validates :name, presence: true, length: { maximum: 50 }
1818
validates :email, presence: false

0 commit comments

Comments
 (0)