luckyframework/avram

Document adding a timestamp column with SQL `NOW()` as default value

notramo opened this issue · 1 comments

Is it possible to add a timestamp typed column to an existing table, with the default value being a raw SQL NOW()? So if a new record is added, the column value is set to the timestamp the column was added.

Yup. add time : Time, default: :now. Looks like it's just not documented.