Sha256: 90d8a95cbef3bd01d08bd1518bff12a63bf29edcb3096e57425c72154eb6bde5

Contents?: true

Size: 302 Bytes

Versions: 129

Compression:

Stored size: 302 Bytes

Contents

module BusinessSupport
  class Sector
    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/sector.rb
govuk_content_models-33.0.0 app/models/business_support/sector.rb
govuk_content_models-32.3.1 app/models/business_support/sector.rb
govuk_content_models-32.3.0 app/models/business_support/sector.rb
govuk_content_models-32.2.0 app/models/business_support/sector.rb
govuk_content_models-32.1.0 app/models/business_support/sector.rb
govuk_content_models-32.0.0 app/models/business_support/sector.rb
govuk_content_models-31.4.0 app/models/business_support/sector.rb
govuk_content_models-31.3.0 app/models/business_support/sector.rb
govuk_content_models-31.2.2 app/models/business_support/sector.rb
govuk_content_models-31.2.1 app/models/business_support/sector.rb
govuk_content_models-31.2.0 app/models/business_support/sector.rb
govuk_content_models-31.1.0 app/models/business_support/sector.rb
govuk_content_models-31.0.0 app/models/business_support/sector.rb
govuk_content_models-30.0.0 app/models/business_support/sector.rb
govuk_content_models-29.1.2 app/models/business_support/sector.rb
govuk_content_models-29.1.1 app/models/business_support/sector.rb
govuk_content_models-29.1.0 app/models/business_support/sector.rb
govuk_content_models-29.0.1 app/models/business_support/sector.rb
govuk_content_models-29.0.0 app/models/business_support/sector.rb