Prova detta:
# Notice single = vs ==
WHERE (archived = 1)
Uppdatera Slutade med att göra
scope :is_archived, where('archived != ?', 1)
scope :not_archived, where('archived = ?', 1)
Detta fungerade utmärkt. Tack!
Prova detta:
# Notice single = vs ==
WHERE (archived = 1)
Uppdatera Slutade med att göra
scope :is_archived, where('archived != ?', 1)
scope :not_archived, where('archived = ?', 1)
Detta fungerade utmärkt. Tack!