I have datetime column data type in ReminderDetail
model, and I want to update_all
values belonging to that column. I have written below query
ReminderDetail.update_all("reminder_date = date(reminder_date) - 1)
but it updates like below:
Before 2013-07-05 06:37:00
After 2013-07-04 00:00:00
I want to update only the date, not hours. I want to like that 2013-07-04 06:37:00 or can I add some seconds to existing data ? can any one suggest ?