Sha256: a87961e2ade8ce9f7b3d3d613546e015ef41096c6bbfb78ee16551f90b4a14e3

Contents?: true

Size: 204 Bytes

Versions: 10

Compression:

Stored size: 204 Bytes

Contents

module Gaku
  class ScholarshipStatus < ActiveRecord::Base

    has_many :students

    translates :name

    validates :name, presence: true, uniqueness: true

    def to_s
      name
    end

  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
gaku-0.1.1 core/app/models/gaku/scholarship_status.rb
gaku_core-0.1.1 app/models/gaku/scholarship_status.rb
gaku-0.1.0 core/app/models/gaku/scholarship_status.rb
gaku_core-0.1.0 app/models/gaku/scholarship_status.rb
gaku_core-0.0.3 app/models/gaku/scholarship_status.rb
gaku-0.0.3 core/app/models/gaku/scholarship_status.rb
gaku-0.0.2 core/app/models/gaku/scholarship_status.rb
gaku_core-0.0.2 app/models/gaku/scholarship_status.rb
gaku-0.0.1 core/app/models/gaku/scholarship_status.rb
gaku_core-0.0.1 app/models/gaku/scholarship_status.rb