module BusinessSupport
  class Purpose
    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
