It looks like the migration DSL (#132) implements this with a "column_type" function for this purpose in the Ecto.Adapters.Postgres.SQL module.