Fix ordering of stock_changes in delivery (case-insensitive ordering did not work properly for all database flavors)
This commit is contained in:
parent
8a79dfd167
commit
a29d52dcae
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class Delivery < ActiveRecord::Base
|
|||
has_many :stock_changes,
|
||||
:dependent => :destroy,
|
||||
:include => 'stock_article',
|
||||
:order => 'articles.name COLLATE NOCASE ASC'
|
||||
:order => 'articles.name ASC'
|
||||
|
||||
scope :recent, :order => 'created_at DESC', :limit => 10
|
||||
|
||||
|
|
Loading…
Reference in a new issue