activate icon indicating copy to clipboard operation
activate copied to clipboard

Mark columns as unique and/or allow arbitrary constraints

Open vchuravy opened this issue 12 years ago • 2 comments

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.

vchuravy avatar Nov 11 '13 12:11 vchuravy

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

vchuravy avatar Nov 12 '13 01:11 vchuravy

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.

Alain-Bearez avatar Apr 23 '14 19:04 Alain-Bearez