Sha256: 99bc0dcba1a43b865ce1beea8f1d9a3cdea609bbdfea08bb307c03823550c8dc

Contents?: true

Size: 304 Bytes

Versions: 129

Compression:

Stored size: 304 Bytes

Contents

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