Hey everyone, For a number of my ''time'' columns, I use a default value of "00:00:00". Unfortunately, when trying to clone this db structure to my test database using "rake clone_schema_to_test", Ruby substitutes the string "Sat Jan 01 00:00:00 Eastern Standard Time 2000" (without quotations) for those default values, which results in a syntax error. ./db/schema.rb:95: syntax error t.column "duration", :time, :default => Sat Jan 01 00:00:00 Eastern Standard Time 2000, :null => false Anyone know a way around this? Thanks, Ben -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Anyone? This is particularly annoying, because everytime I run "rake test" it rebuilds schema.rb with these long date strings -- so I can''t test anything! - Ben Ben Winekur wrote:> Hey everyone, > > For a number of my ''time'' columns, I use a default value of "00:00:00". > Unfortunately, when trying to clone this db structure to my test > database using "rake clone_schema_to_test", Ruby substitutes the string > "Sat Jan 01 00:00:00 Eastern Standard Time 2000" (without quotations) > for those default values, which results in a syntax error. > > ./db/schema.rb:95: syntax error > t.column "duration", :time, :default => Sat Jan 01 00:00:00 Eastern > Standard Time 2000, :null => false > > Anyone know a way around this? > > Thanks, > Ben-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
http://wiki.rubyonrails.org/rails/pages/RakeErrorsAfterUpdatingToRails1.1.x Looks like there''s no easy solution :( -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---