How do I describe an enumeration column in a Rails 3 migration?
You can describe an enumeration column with:
t.column 'role', 'user_role'
I created the enum type with:
execute "CREATE TYPE user_role AS ENUM ('consultant', 'admin');"
Inspecting the database:
Column | Type | Modifiers | Storage | Stats target | Description
---------------+------------------------+-----------+----------+--------------+-------------
role | user_role | | plain | |