Sha256: 4dba1e56d4b2dea93ba95bb9ed6cb2def970526c98894108e3e51cd6cc94facd

Contents?: true

Size: 224 Bytes

Versions: 12

Compression:

Stored size: 224 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class ContinuityBadgeStatus < ApplicationRecord
    belongs_to :subject, polymorphic: true

    validates :subject, :current_streak, :last_session_at, presence: true
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-core-0.19.1 app/models/decidim/continuity_badge_status.rb
decidim-core-0.18.1 app/models/decidim/continuity_badge_status.rb
decidim-core-0.19.0 app/models/decidim/continuity_badge_status.rb
decidim-core-0.17.2 app/models/decidim/continuity_badge_status.rb
decidim-core-0.18.0 app/models/decidim/continuity_badge_status.rb
decidim-core-0.17.1 app/models/decidim/continuity_badge_status.rb
decidim-core-0.16.1 app/models/decidim/continuity_badge_status.rb
decidim-core-0.17.0 app/models/decidim/continuity_badge_status.rb
decidim-core-0.16.0 app/models/decidim/continuity_badge_status.rb
decidim-core-0.15.2 app/models/decidim/continuity_badge_status.rb
decidim-core-0.15.1 app/models/decidim/continuity_badge_status.rb
decidim-core-0.15.0 app/models/decidim/continuity_badge_status.rb