Sha256: 86f12c057fd3272a018a5e55c195f5ec904e4b3ae7607fc1c2cd82258080728b

Contents?: true

Size: 257 Bytes

Versions: 13

Compression:

Stored size: 257 Bytes

Contents

module Sis
  module Core
    class Course < ApplicationRecord
      belongs_to :program

      validates :code, :title, :description, :credit_hours, :ects, :lecture_hours, :lab_hours, presence: true
      validates :code, uniqueness: true
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sis_core-1.0.15 app/models/sis/core/course.rb
sis_core-1.0.14 app/models/sis/core/course.rb
sis_core-1.0.13 app/models/sis/core/course.rb
sis_core-1.0.12 app/models/sis/core/course.rb
sis_core-1.0.11 app/models/sis/core/course.rb
sis_core-1.0.10 app/models/sis/core/course.rb
sis_core-1.0.9 app/models/sis/core/course.rb
sis_core-1.0.8 app/models/sis/core/course.rb
sis_core-1.0.7 app/models/sis/core/course.rb
sis_core-1.0.6 app/models/sis/core/course.rb
sis_core-1.0.5 app/models/sis/core/course.rb
sis_core-1.0.4 app/models/sis/core/course.rb
sis_core-1.0.3 app/models/sis/core/course.rb