       student ->
         student
         |> User.changeset(params, :update)
-        |> IO.inspect
         |> add_timestamps()
         |> Repo.update
         |> format_error(student)


  @students from u in User, where: u.role == "Student" and is_nil(u.deleted_at)

  def all() do
    Repo.all(@students)
  end


defmodule CoursePlanner.Students do
  @moduledoc """
    Handle Students specific logics
  """
  alias CoursePlanner.Repo
  alias CoursePlanner.User
  import Ecto.Query
