I have tables with double as their field''s datatype. When I ran db:schema:dump, Rails changed all of these double to float. I would like to know why, and if there is anyway I could preserve the datatype. Thanks a lot, Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Migrations do not support double data types to my knowledge. You would need to use database specific SQL to retain the double data type. Michael On Jun 15, 2:55 am, mahadewa <brajamu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have tables with double as their field''s datatype. When I ran > db:schema:dump, Rails changed all of these double to float. > I would like to know why, and if there is anyway I could preserve the > datatype. > > Thanks a lot, > Chris--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Darn it ! Oh well. Thanks a lot for your answer :) Chris On Jun 15, 4:03 pm, MichaelLatta <lat...-ee4meeAH724@public.gmane.org> wrote:> Migrations do not support double data types to my knowledge. You > would need to use database specific SQL to retain the double data > type. > > Michael > > On Jun 15, 2:55 am, mahadewa <brajamu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I have tables with double as their field''s datatype. When I ran > > db:schema:dump, Rails changed all of these double to float. > > I would like to know why, and if there is anyway I could preserve the > > datatype. > > > Thanks a lot, > > Chris--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---