forked from OpenNeo/impress
allow the new items migration to run. sigh
This commit is contained in:
parent
d99a1ad792
commit
a4feee89b5
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class Item < ActiveRecord::Base
|
||||||
"LEFT JOIN #{SwfAsset.table_name} sa ON sa.type = 'object' AND sa.id = psa.swf_asset_id"
|
"LEFT JOIN #{SwfAsset.table_name} sa ON sa.type = 'object' AND sa.id = psa.swf_asset_id"
|
||||||
).where('sa.id IS NULL')
|
).where('sa.id IS NULL')
|
||||||
|
|
||||||
scope :newest, order(arel_table[:created_at].desc)
|
scope :newest, order(arel_table[:created_at].desc) if arel_table[:created_at]
|
||||||
|
|
||||||
scope :spidered_longest_ago, order(["(#{Item.arel_table[:last_spidered].eq(nil).to_sql}) DESC", arel_table[:last_spidered].desc])
|
scope :spidered_longest_ago, order(["(#{Item.arel_table[:last_spidered].eq(nil).to_sql}) DESC", arel_table[:last_spidered].desc])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue