Skip to content

Commit 4f2efca

Browse files
committed
Be in the same order in different environments
1 parent 26ea669 commit 4f2efca

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)