Displaying 1 result from an estimated 1 matches for "collection_time".
2010 Mar 08
2
calling save changes a date field in my model instance to 2000
...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
t.timestamps
end
end
Here''s an interaction from the console. I make a new Wait and give it
a collection_time of Time.now. The resulting objects has a
collection_time that looks right, March, 2010. At this point I call
save and th...