[Rails] BigDecimal column type?

Ashley Moran work at ashleymoran.me.uk
Sat Apr 1 17:07:42 GMT 2006


On Apr 01, 2006, at 2:54 am, Jeff Cohen wrote:
> I was hoping 1.1 would provide a way to map SQL "decimal" column types
> to BigDecimal values, since BigDecimal is part of the Ruby standard  
> api
> as of 1.8.

Jeff

I missed this feature too - in fact it made Rails such a non-starter  
at my company that I wrote a patch for ActiveRecord, which is  
available at http://dev.rubyonrails.org/ticket/4274 .  I wrote it  
initially for Postgres and ported it to SQL Server (we are moving  
from SQL Server to Postgres at work so they are the two databases I'm  
familiar with).  If you use either of these perhaps you'd give it a  
try and let me know what you think.  If I get time over the next few  
weeks I'll port it to Firebird and then MySQL.  But really, you want  
to be using Postgres for serious work :)

Ashley






More information about the Rails mailing list