Sha256: aa4a4511027ceaac992f1087970b17d47217486eb36800aef26ea7d1a7544994

Contents?: true

Size: 320 Bytes

Versions: 25

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Gamification
    class BadgeScore < ApplicationRecord
      self.table_name = "decidim_gamification_badge_scores"

      belongs_to :user, class_name: "Decidim::UserBaseEntity"
      validates :value, numericality: { greater_than_or_equal_to: 0 }
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/models/decidim/gamification/badge_score.rb
decidim-core-0.28.4 app/models/decidim/gamification/badge_score.rb
decidim-core-0.27.9 app/models/decidim/gamification/badge_score.rb
decidim-core-0.29.0 app/models/decidim/gamification/badge_score.rb
decidim-core-0.28.3 app/models/decidim/gamification/badge_score.rb
decidim-core-0.27.8 app/models/decidim/gamification/badge_score.rb
decidim-core-0.29.0.rc4 app/models/decidim/gamification/badge_score.rb
decidim-core-0.29.0.rc3 app/models/decidim/gamification/badge_score.rb
decidim-core-0.29.0.rc2 app/models/decidim/gamification/badge_score.rb
decidim-core-0.29.0.rc1 app/models/decidim/gamification/badge_score.rb
decidim-core-0.28.2 app/models/decidim/gamification/badge_score.rb
decidim-core-0.27.7 app/models/decidim/gamification/badge_score.rb
decidim-core-0.28.1 app/models/decidim/gamification/badge_score.rb
decidim-core-0.27.6 app/models/decidim/gamification/badge_score.rb
decidim-core-0.28.0 app/models/decidim/gamification/badge_score.rb
decidim-core-0.27.5 app/models/decidim/gamification/badge_score.rb
decidim-core-0.28.0.rc5 app/models/decidim/gamification/badge_score.rb
decidim-core-0.28.0.rc4 app/models/decidim/gamification/badge_score.rb
decidim-core-0.27.4 app/models/decidim/gamification/badge_score.rb
decidim-core-0.27.3 app/models/decidim/gamification/badge_score.rb