discourse/app/models/push_subscription.rb
David Taylor 4b55b59931 DEV: Update core model annotations
Generated using `bin/rake annotate:clean`
2021-07-06 10:11:06 +01:00

23 lines
531 B
Ruby

# frozen_string_literal: true
class PushSubscription < ActiveRecord::Base
belongs_to :user
def parsed_data
JSON.parse(data)
end
end
# == Schema Information
#
# Table name: push_subscriptions
#
# id :bigint not null, primary key
# user_id :integer not null
# data :string not null
# created_at :datetime not null
# updated_at :datetime not null
# error_count :integer default(0), not null
# first_error_at :datetime
#