activate
activate copied to clipboard
Mark columns as unique and/or allow arbitrary constraints
It would be nice to mark a column as unique. Related to that it would be nice to add arbitrary constraint and maybe have some helper function for stuff like unique column.
It would be nice to add macros in the style of http://slick.typesafe.com/doc/1.0.0/direct-embedding.html so that the migration engine can infer what kinds of constraints we would like to have on the column
Up to now, I used the capability of declaring an index as unique in order to mark a column as unique. It may be because, on our current project, we also want an index on these columns in order to sort on them.