diff --git a/app/models/proposal.rb b/app/models/proposal.rb index 123987e82..a1e48e5c8 100644 --- a/app/models/proposal.rb +++ b/app/models/proposal.rb @@ -44,7 +44,7 @@ class Proposal < ApplicationRecord scope :accepted, -> { where(state: ACCEPTED) } scope :waitlisted, -> { where(state: WAITLISTED) } scope :submitted, -> { where(state: SUBMITTED) } - scope :confirmed, -> { where('confirmed_at IS NOT NULL') } + scope :confirmed, -> { where.not(confirmed_at: nil) } scope :soft_accepted, -> { where(state: SOFT_ACCEPTED) } scope :soft_waitlisted, -> { where(state: SOFT_WAITLISTED) }