The address column in the users table should never contain an empty string "".
You can create new migrations using lein migratus create enforce-non-blank-address.
This probably also requires some changes to the related API endpoint, namely ensuring that if an empty string is sent it should be converted to nil before storing it in the database.
The
address
column in theusers
table should never contain an empty string""
.You can create new migrations using
lein migratus create enforce-non-blank-address
.This probably also requires some changes to the related API endpoint, namely ensuring that if an empty string is sent it should be converted to
nil
before storing it in the database.