Hi ,
I'm looking for a way to create columns with a default current_stamp with the db:migrate feature.
Hi ,
I'm looking for a way to create columns with a default current_stamp with the db:migrate feature.
Create a column called created_at with :datetime as the type. You can also create updated_at in the same way. It will be updated every time the record is.
-Bill
Dirk wrote: