is there a way to create virtual columns in postgres?

I could just create a migration but I want the type to be correct, if it allows null it will be wrong and if it doesn't it will require it in inserts
Was this page helpful?