Makes `Enum` invocation compatible with PostgreSQL