mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
8 lines
192 B
Ruby
8 lines
192 B
Ruby
# frozen_string_literal: true
|
|
|
|
class WebPushSubscription < ApplicationRecord
|
|
belongs_to :user
|
|
|
|
scope :active, -> { where(failures: ...3) }
|
|
scope :failed, -> { where(failures: 3..) }
|
|
end
|