Retrospring/app/models/web_push_subscription.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
192 B
Ruby
Raw Normal View History

2022-09-11 11:10:21 -07:00
# frozen_string_literal: true
class WebPushSubscription < ApplicationRecord
belongs_to :user
scope :active, -> { where(failures: ...3) }
scope :failed, -> { where(failures: 3..) }
2022-09-11 11:10:21 -07:00
end