Revert "Note: add default_scope { order(created_at: :asc, id: :asc) }"
This reverts commit 7602cef572
.
This commit is contained in:
parent
b5e961eb4c
commit
0eaabc2708
1 changed files with 0 additions and 1 deletions
|
@ -44,7 +44,6 @@ class Note < ActiveRecord::Base
|
|||
mount_uploader :attachment, AttachmentUploader
|
||||
|
||||
# Scopes
|
||||
default_scope { order(created_at: :asc, id: :asc) }
|
||||
scope :for_commit_id, ->(commit_id) { where(noteable_type: "Commit", commit_id: commit_id) }
|
||||
scope :inline, ->{ where("line_code IS NOT NULL") }
|
||||
scope :not_inline, ->{ where(line_code: [nil, '']) }
|
||||
|
|
Loading…
Reference in a new issue