title: Custom constraints - postgres
body: <p>This is more of a conceptual doubt. Is there any way in which we can apply a constraint that value of a field can't be blank? I know <code>NOT NULL</code> can be used. But I want to check if the field has only spaces, it rejects that value also. For example <code>"    "</code> should be rejected.</p>