I'm interested in using Postgres's custom type support with Rails, particularly
enumerated types. I see that this topic was previously brought up on this list
here, but it did not seem to generate any discussion.
Would there be any interest in supporting Postgres custom enumerated types in ActiveRecord?
As a first pass, I would want to ability to run "CREATE TYPE foo AS ENUM(...)" statements in migrations and have them captured in schema.rb, as well as being able to use custom types alongside native types in my column definitions. I could eventually see it making sense to allow ActiveRecord "enum" declarations to defer to a native database enumeration if it exists, but the "enum" method doesn't seem to have been aligned with the recent upgrades to the type system through the "attribute" keyword and ActiveRecord::Type.
-md