Skip to content

apitabledefinitiontimestamps

Troy Murray edited this page Sep 19, 2011 · 2 revisions

timestamps()

Usage

Adds 3 timestamp column definitions (createdat, updatedat, deletedat) to the table definition object following the CFWheels conventions for automated timestamps and soft deletes.

Function Syntax

t.timestamps();

Parameters

None

Notes

Prior to version 0.4, columns were camelCase (i.e. createdAt, updatedAt, deletedAt)

Clone this wiki locally