Sha256: 7e0908a3eebfcca13c772333bfcfa8080bdddcbb6e29a4804ff904c951419c92

Contents?: true

Size: 279 Bytes

Versions: 21

Compression:

Stored size: 279 Bytes

Contents

module Sis
  module Core
    class FieldOfStudy < ApplicationRecord
      belongs_to :program_type, class_name: 'Sis::Core::ProgramType', foreign_key: 'lookup_id'
      validates :name, presence: true
      validates :name, uniqueness: { case_sensitive: true }
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
sis_core-1.0.20 app/models/sis/core/field_of_study.rb
sis_core-1.0.19 app/models/sis/core/field_of_study.rb
sis_core-1.0.18 app/models/sis/core/field_of_study.rb
sis_core-1.0.17 app/models/sis/core/field_of_study.rb
sis_core-1.0.16 app/models/sis/core/field_of_study.rb
sis_core-1.0.15 app/models/sis/core/field_of_study.rb
sis_core-1.0.14 app/models/sis/core/field_of_study.rb
sis_core-1.0.13 app/models/sis/core/field_of_study.rb
sis_core-1.0.12 app/models/sis/core/field_of_study.rb
sis_core-1.0.11 app/models/sis/core/field_of_study.rb
sis_core-1.0.10 app/models/sis/core/field_of_study.rb
sis_core-1.0.9 app/models/sis/core/field_of_study.rb
sis_core-1.0.8 app/models/sis/core/field_of_study.rb
sis_core-1.0.7 app/models/sis/core/field_of_study.rb
sis_core-1.0.6 app/models/sis/core/field_of_study.rb
sis_core-1.0.5 app/models/sis/core/field_of_study.rb
sis_core-1.0.4 app/models/sis/core/field_of_study.rb
sis_core-1.0.3 app/models/sis/core/field_of_study.rb
sis_core-1.0.2 app/models/sis/core/field_of_study.rb
sis_core-1.0.1 app/models/sis/core/field_of_study.rb