Closed HelloReboot closed 1 week ago
This is done by the ORM. Here's an adaptation from one of my tables.
// check() is from sea-query's create.rs
.check(Expr::col(MyTable::ColumnA).lt(Expr::col(MyTable::ColumnB)))
thank you so much bro @trevoranderson
CHECK (phone_number IS NOT NULL OR email IS NOT NULL);
how can i define this in db migration files?