Frederick Cheung writes:
 > 
 > 
 > On Mar 8, 2:47 pm, Paul Rubel <pru...@bbn.com> wrote:
 > > Hi,

<snip>

 > > I have a bunch of data in a text file that I'd like to place in my
 > > DB but am ending up with odd results when I save the data.
 > >
 > > Here's my model:
 > >
 > >     class CreateWaits < ActiveRecord::Migration
 > >       def self.up
 > >         create_table :waits do |t|
 > >           t.string :location
 > >           t.integer :reg_wait_min
 > >           t.integer :lic_wait_min
 > >           t.time :collection_time  #This is the troublesome one
 > >
 > it's because you've asked for a time column (which means that only the
 > time of day component is saved, the date is ignored). If you want date
 > & time make your column be a datetime

Ah ha. That makes sense. 

   Thanks much,
   Paul

-- 
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.

Reply via email to