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