 defmodule CodeCorps.Skill do
   use CodeCorps.Web, :model
+  import CodeCorps.Validators.SlugValidator
   alias Inflex
 
   schema "skills" do

    |> cast(params, [:title, :description, :original_row, :slug])
    |> update_slug()
    |> validate_required([:title, :slug])
    |> validate_exclusion(:slug, reserved_routes)
    |> unique_constraint(:slug)
  end


    end

  end
end
