Sha256: 8379b5d91b37511785987deb7c6466a1e59cecbddb12e00015aa294d829b4f98

Contents?: true

Size: 198 Bytes

Versions: 126

Compression:

Stored size: 198 Bytes

Contents

module Comee
  module Core
    class Lookup < ApplicationRecord
      validates :code, :name, :lookup_type, presence: true
      validates :code, uniqueness: {scope: :lookup_type}
    end
  end
end

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
comee_core-0.2.67 app/models/comee/core/lookup.rb
comee_core-0.2.66 app/models/comee/core/lookup.rb
comee_core-0.2.65 app/models/comee/core/lookup.rb
comee_core-0.2.64 app/models/comee/core/lookup.rb
comee_core-0.2.63 app/models/comee/core/lookup.rb
comee_core-0.2.62 app/models/comee/core/lookup.rb
comee_core-0.2.61 app/models/comee/core/lookup.rb
comee_core-0.2.60 app/models/comee/core/lookup.rb
comee_core-0.2.59 app/models/comee/core/lookup.rb
comee_core-0.2.58 app/models/comee/core/lookup.rb
comee_core-0.2.57 app/models/comee/core/lookup.rb
comee_core-0.2.56 app/models/comee/core/lookup.rb
comee_core-0.2.55 app/models/comee/core/lookup.rb
comee_core-0.2.54 app/models/comee/core/lookup.rb
comee_core-0.2.53 app/models/comee/core/lookup.rb
comee_core-0.2.52 app/models/comee/core/lookup.rb
comee_core-0.2.51 app/models/comee/core/lookup.rb
comee_core-0.2.50 app/models/comee/core/lookup.rb
comee_core-0.2.49 app/models/comee/core/lookup.rb
comee_core-0.2.48 app/models/comee/core/lookup.rb