Oops...sorry. I figured it out. precision is number of significant
digits and scale just says that two are after the decimal point.
R
On Mar 10, 4:14 pm, Ron
<stecklyena...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
>
> So this is a bit embarrassing, but I''ve been working through the
depot
> tutorial in Agile Web Development. In the add_column migration, there
> is:
>
> add_column :products, :price, :decimal, :precision =>
> 8, :scale=>2, :default=>0
>
> I''m assuming that precision means the number of significant
digits,
> no? Could someone clarify what those three parameters after decimal
> mean?
>
> Thanks,
>
> Ron
--~--~---------~--~----~------------~-------~--~----~
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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---