On Mon, Jan 27, 2014 at 12:16 PM, Selvag Ruby <lists / ruby-forum.com> wrote:

That's fine, I trying Ruby code to store the rational number into
> Postgresql,  but it throwing error as invalid value for integer()
> because I used column type as Integer. Which type of column (in pg)
> allows that value to store?
>
> I know it is DB related one. assist me if you faced the same case.
>

Postgres does not have a rational type, but the pgmp extension provides one:

    http://pgmp.projects.pgfoundry.org/mpq.html

Works like a charm.