Sha256: 0576f1d935b427efc9cc61f2180b255a30c3ee5540b6be344a6ee1c491cd8163

Contents?: true

Size: 195 Bytes

Versions: 6

Compression:

Stored size: 195 Bytes

Contents

module Gaku
  class SimpleGrade < ActiveRecord::Base

    belongs_to :student
    belongs_to :school

    validates :name, :student_id, presence: true

    def to_s
      name
    end

  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gaku_core-0.0.3 app/models/gaku/simple_grade.rb
gaku-0.0.3 core/app/models/gaku/simple_grade.rb
gaku-0.0.2 core/app/models/gaku/simple_grade.rb
gaku_core-0.0.2 app/models/gaku/simple_grade.rb
gaku-0.0.1 core/app/models/gaku/simple_grade.rb
gaku_core-0.0.1 app/models/gaku/simple_grade.rb