mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 08:30:12 +08:00
4b55b59931
Generated using `bin/rake annotate:clean`
23 lines
531 B
Ruby
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
|
|
#
|