I'm using ruby 1.8.6 and rails 1.2.3 (ancient but I'm debugging an old app)
A model called Payperiod has attributes begindate and enddate and after importing the db, the dates are all there (apparently)
But in the console and in the app, the date attributes eval to nil. Why?
Below is some code pasted from the console:
pp = Payperiod.find 95
=> #<Payperiod:0xb6d60f90 @attributes={"enddate"=>"2010-10-25", "title"=>"", "begindate"=>"2010-10-12", "id"=>"95", "region_id"=>"1", "active"=>"1"}>
pp.enddate => nil
Is this a mysql issue?