has_enum for integer columns

It is possible to use integers as enum columns. Useful for database
comparison of enum values. Uses index-method to save enum value.