Commit 75f6195a by ivan Lan

Change order's defulat order

parent a8f6abcb
......@@ -33,7 +33,7 @@ module Shotengai
self.table_name = 'shotengai_orders'
belongs_to :buyer, polymorphic: true, optional: true#, touch: true
default_scope { where.not(status: 'cart').order(created_at: :desc) }
default_scope { where.not(status: 'cart').order(updated_at: :desc) }
scope :status_is, ->(status) { where(status.blank?.! && { status: status }) }
after_create :set_seq
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment