Hi Frederick, Thanks for taking the time to look at my newbie code. I now have both styles: change_column :expenses, :amount, :decimal, :precision => 10, :scale => 2 # DSL-style change_column( "expenses", "amount", "decimal(10, 2)" ) # C-style working. Thank you for pointing the things I was missing when I fumbled here.
I wont have any more problems in this area. But I'm moving on to a new area now :-) Best wishes, Richard On Mar 13, 7:45 pm, Frederick Cheung <frederick.che...@gmail.com> wrote: > On Mar 13, 11:13 pm, RichardOnRails > > <richarddummymailbox58...@uscomputergurus.com> wrote: > > > class ChangeExpenseTblAmountCol < ActiveRecord::Migration > > def self.up > > change_column :expense, :amount, :decimal :precision => > > 10, :scale => 2 > > end > > The first parameter is the table name ( ie plural) and you're missing > a comma towards the end. > > Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.