Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Giles Alexander's latest activity

Monday, June 01 2009
2741 Decimal column with zero scale dumped as integer column was updated in Ruby on Rails
  • Giles Alexander
    Giles Alexander commented at 2:47 AM

    Thanks. Yes, that still looks ok.

  • Giles Alexander
    Giles Alexander commented at 1:42 AM

    I tried that, and it caused a lot of test failures. There's an optimisation in ActiveRecord to represent decimal columns with a scale of 0 as integers. This is ...

Saturday, May 30 2009
2741 Decimal column with zero scale dumped as integer column was created in Ruby on Rails
  • Giles Alexander
    Giles Alexander created the ticket at 9:13 AM

    If you declare a decimal column with a scale of 0 in a migration:

    create_table :large_integers do |t|
      t.decimal :large, :scale => 0, :precision => 80
    
      t.ti...