Sha256: 4245cd19b8ab234a8eb0baa95ae0b91ce2af2c6e84dcca6e9efad1b8a102d219

Contents?: true

Size: 177 Bytes

Versions: 21

Compression:

Stored size: 177 Bytes

Contents

module Sis
  module Core
    class Lookup < ApplicationRecord
      validates :name, :type, presence: true
      validates :name, uniqueness: { scope: :type }
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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