mysql - Active record do not send created at and updated at -
we have table columns: created_at datetime not null default current_timestamp, updated_at datetime not null default current_timestamp on update current_timestamp,
when updating active record insert query contains created_at , updated_at columns.
even after setting config.active_record.record_timestamps = false active record sending created_at , updated_at null.
is there way not send these columns @ want handle @ mysql level.
as far mysql concerned, updated_on columns should per below auto update-
updated_at timestamp not null default current_timestamp on update current_timestamp
Comments
Post a Comment