title: Filtering when using custom column type in Slick
body: <p>I'm having some difficulties querying/filtering in Slick 2.1.0 when using a custom column type.
  A simplified version of my problem:</p>
  
  <pre><code>import scala.slick.driver.MySQLDriver.simple._
  
  sealed class Status(val intValue: Int)
  case object Active extends Status(1)
  case object Disabled extends Status(2)
  case object Deleted extends Status(3)
  
  case class TableMapping(id: Long, status: Status)
  
  class MyTableDefinition(tag: Tag) extends Table[TableMapping](tag, "sometable") {
    implicit val statusColumnType = MappedColumnType.base[Status, Int](statusToInt, intToStatus)
  
    def id = column[Long]("ID", O.PrimaryKey, O.AutoInc)
    def status = column[Status]("STATUS", O.NotNull, O.Default(Active))
    def * = (id, status) &lt;&gt; (TableMapping.tupled, TableMapping.unapply)
  
    private def statusToInt(s: Status): Int = s.intValue
    private def intToStatus(i: Int): Status = i match {
      case 1 =&gt; Active
      case 2 =&gt; Disabled
      case _ =&gt; Deleted
    }
  }
  
  class MyTableDao {
      val Items = TableQuery[MyTableDefinition]
      def byId(id: Long)(implicit session: Session): Option[TableMapping] = {
        Items.filter(_.status =!= Deleted).firstOption
      }
  }
  </code></pre>
  
  <p>I get a compile error on this: </p>
  
  <pre><code>Items.filter(_.status =!= Deleted).firstOption
  </code></pre>
  
  <p>The error states: </p>
  
  <pre><code>value =!= is not a member of scala.slick.lifted.Column[Status]
  [error] def byId(id: Long)(implicit session: Session): Option[TableMapping] =
    Items.filter(_.status =!= Deleted).firstOption
  </code></pre>
  
  <p>Any ideas of what I'm doing wrong? Maybe there is a much better way of doing this that I'm not aware of?</p>