Fixed Rational to BigDecimal conversion

Running into a problem with Rationals we discovered that `active_record/connection_adapters/column.rb` does not support `Rational#to_d(precision)`.

This pull requests adds the missing clause with a test case.

Cheers,

@Overbryd and @marianovalles