discourse/app/models/push_subscription.rb

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

23 lines
531 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class PushSubscription < ActiveRecord::Base
belongs_to :user
def parsed_data
JSON.parse(data)
end
end
# == Schema Information
#
2018-05-08 19:49:50 -04:00
# 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
#