search for: expected_at

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

Did you mean: expected_
2011 Mar 30
15
Should AR set default values obtained from the schema?
...ault value for a timestamp column. Consequently AR is attempting to insert a NULL into a column that has a NOT NULL constraint. This fails. I cannot code around this because the datetime class in Rails does not recognize ''infinity'' as a valid value. ruby-1.8.7-p334 :003 > x.expected_at = ''infinity'' => "infinity" ruby-1.8.7-p334 :004 > x.save ActiveRecord::StatementInvalid: PGError: ERROR: null value in column "expected_at" violates not-null constraint To me, it seems both redundant and intrusive to handle column default values as pre...