Is there an easy way to do this? I got lost wading around in the source trying to find some code that would do this.
Slick's table component provides additional column options. This is accesable via an object O.
So to get a default value specified for the column, you could do something like this:
def mycolumn = column[String](
"MYCOLUMNNAME",
O.DBType("VARCHAR"),
O.Default("Let's eat icecream"))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With