Sha256: e6a05ccce4963eba0350dca7c4edfa88303d765760d48c5d208a0b848e53e76b

Contents?: true

Size: 388 Bytes

Versions: 13

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class ReminderRecord < ApplicationRecord
    STATES = { active: 0, pending: 10, completed: 20, deleted: -1 }.freeze

    belongs_to :reminder, foreign_key: "decidim_reminder_id", class_name: "Decidim::Reminder"
    belongs_to :remindable, foreign_type: "remindable_type", polymorphic: true, optional: true

    enum state: STATES
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/models/decidim/reminder_record.rb
decidim-core-0.28.4 app/models/decidim/reminder_record.rb
decidim-core-0.29.0 app/models/decidim/reminder_record.rb
decidim-core-0.28.3 app/models/decidim/reminder_record.rb
decidim-core-0.29.0.rc4 app/models/decidim/reminder_record.rb
decidim-core-0.29.0.rc3 app/models/decidim/reminder_record.rb
decidim-core-0.29.0.rc2 app/models/decidim/reminder_record.rb
decidim-core-0.29.0.rc1 app/models/decidim/reminder_record.rb
decidim-core-0.28.2 app/models/decidim/reminder_record.rb
decidim-core-0.28.1 app/models/decidim/reminder_record.rb
decidim-core-0.28.0 app/models/decidim/reminder_record.rb
decidim-core-0.28.0.rc5 app/models/decidim/reminder_record.rb
decidim-core-0.28.0.rc4 app/models/decidim/reminder_record.rb