Sha256: 1757ec3b915033747c77753599f95d28e344dd05afb4aee2b8c5660e6e5c00d0

Contents?: true

Size: 307 Bytes

Versions: 129

Compression:

Stored size: 307 Bytes

Contents

module BusinessSupport
  class SupportType
    include Mongoid::Document

    field :name, type: String
    field :slug, type: String
    index :slug, unique: true

    validates_presence_of :name
    validates_uniqueness_of :name
    validates_presence_of :slug
    validates_uniqueness_of :slug
  end
end

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
govuk_content_models-34.0.0 app/models/business_support/support_type.rb
govuk_content_models-33.0.0 app/models/business_support/support_type.rb
govuk_content_models-32.3.1 app/models/business_support/support_type.rb
govuk_content_models-32.3.0 app/models/business_support/support_type.rb
govuk_content_models-32.2.0 app/models/business_support/support_type.rb
govuk_content_models-32.1.0 app/models/business_support/support_type.rb
govuk_content_models-32.0.0 app/models/business_support/support_type.rb
govuk_content_models-31.4.0 app/models/business_support/support_type.rb
govuk_content_models-31.3.0 app/models/business_support/support_type.rb
govuk_content_models-31.2.2 app/models/business_support/support_type.rb
govuk_content_models-31.2.1 app/models/business_support/support_type.rb
govuk_content_models-31.2.0 app/models/business_support/support_type.rb
govuk_content_models-31.1.0 app/models/business_support/support_type.rb
govuk_content_models-31.0.0 app/models/business_support/support_type.rb
govuk_content_models-30.0.0 app/models/business_support/support_type.rb
govuk_content_models-29.1.2 app/models/business_support/support_type.rb
govuk_content_models-29.1.1 app/models/business_support/support_type.rb
govuk_content_models-29.1.0 app/models/business_support/support_type.rb
govuk_content_models-29.0.1 app/models/business_support/support_type.rb
govuk_content_models-29.0.0 app/models/business_support/support_type.rb