Sha256: d09ab675f957547803c18c3deaee3363bab6ae60b131f203c975817c13b0a459

Contents?: true

Size: 225 Bytes

Versions: 26

Compression:

Stored size: 225 Bytes

Contents

module Gaku
  class ExamScore < ActiveRecord::Base
    belongs_to :exam

    validates :exam, presence: true
    validates :score, numericality: { greater_than_or_equal_to: 0 },
                      presence: true
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
gaku_core-0.3.0 app/models/gaku/exam_score.rb
gaku_core-0.3.0.pre.4 app/models/gaku/exam_score.rb
gaku_core-0.3.0.pre.3 app/models/gaku/exam_score.rb
gaku_core-0.3.0.pre.2 app/models/gaku/exam_score.rb
gaku_core-0.3.0.pre.1 app/models/gaku/exam_score.rb
gaku_core-0.3.0.pre.0 app/models/gaku/exam_score.rb
gaku-0.2.4 core/app/models/gaku/exam_score.rb
gaku_core-0.2.4 app/models/gaku/exam_score.rb
gaku-0.2.3 core/app/models/gaku/exam_score.rb
gaku_core-0.2.3 app/models/gaku/exam_score.rb
gaku-0.2.2 core/app/models/gaku/exam_score.rb
gaku_core-0.2.2 app/models/gaku/exam_score.rb
gaku-0.2.1 core/app/models/gaku/exam_score.rb
gaku_core-0.2.1 app/models/gaku/exam_score.rb
gaku-0.2.0 core/app/models/gaku/exam_score.rb
gaku_core-0.2.0 app/models/gaku/exam_score.rb
gaku-0.1.1 core/app/models/gaku/exam_score.rb
gaku_core-0.1.1 app/models/gaku/exam_score.rb
gaku-0.1.0 core/app/models/gaku/exam_score.rb
gaku_core-0.1.0 app/models/gaku/exam_score.rb