Sha256: 932773111ef4c93c9f538a28d8b19652eafd09dfcc53a0ffc5c155f19d847956

Contents?: true

Size: 294 Bytes

Versions: 6

Compression:

Stored size: 294 Bytes

Contents

module Gaku
  class Achievement < ActiveRecord::Base
    has_many :student_achievements
    has_many :students, through: :student_achievements

    belongs_to :external_school_record

    has_attached_file :badge

    validates :name, 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/achievement.rb
gaku-0.0.3 core/app/models/gaku/achievement.rb
gaku-0.0.2 core/app/models/gaku/achievement.rb
gaku_core-0.0.2 app/models/gaku/achievement.rb
gaku-0.0.1 core/app/models/gaku/achievement.rb
gaku_core-0.0.1 app/models/gaku/achievement.rb