search for: valid_from_before_type_cast

Displaying 1 result from an estimated 1 matches for "valid_from_before_type_cast".

2006 Mar 17
3
Timestamps casted to nil?
...ot;=>"cbd8f7984c654c25512e3d9241ae569f", "login"=>"PS12345", "email"=>"jan.foeh@parship.de"}> >> puts me.valid_from nil => nil Using before_type_cast, I can see the content is still there, albeit as string: >> puts me.valid_from_before_type_cast 01.03.1999 14:09:21 CET => nil Saving a modified object sets all timestamps to nil: >> me.valid=0 => 0 >> me.save ActiveRecord::StatementInvalid: PGError: ERROR: null value in column "valid_from" violates not-null constraint : UPDATE users SET "email" = ...