alternative to :decimal column type for migrations?

Hi, I'm reading Agile Web Development 2nd Edition and I'm following along by doing the sample application 'depot' on my Linux machine. In one of their migrate scripts, they use the following line of code: add_column :products, :price, :decimal, :precision => 8, :scale => 2, :default => 0

They note in the book that :decimal won't exist as a column type until Rails 1.2... which isn't installed on my machine. What is the alternative, pre Rails 1.2 syntax for making a decimal column with precision 8 and scale 2?

Thank you, -- C

Drop tp SQL with execute.

Drop tp SQL with execute.

Or upgrade to edge.


Thanks, that worked... :slight_smile:


Michael Campbell wrote: