My model Enrollment has a time field called delivery_time. How do I set it to 8:00AM?
In my migration, I had it do:
t.time :delivery_time, :default => "8:00AM"
But when I go into the console and output the value of delivery_time, it spits out "Sat Jan 01 08:00:00 +0000 2000"
Why is it doing this?
WHAT I'M TRYING TO DO:
What I want to do is have a condition statement like this:
ModelName.find(:all, :conditions => [":delivery_time = ?", Time.now.hour]