I have a table that looks kind of like this:
CREATE TABLE blahs (
id SERIAL PRIMARY KEY,
modified_at DATETIME NOT NULL DEFAULT now()
When I try to create a new row using ActiveRecord, it bombs saying I'm
not allowed to set modified_at to NULL.
new = Blah.new
new.some_field = some_value
new.save! # ERROR: null value in column "modified_at" violates not-
null constraint (ActiveRecord::StatementInvalid)
Is there any way to let ActiveRecord use the default value set at the
I'm using Postgres 8.2.
Thanks for the help.