timestamps method

void timestamps()

Add timestamp columns (created_at and updated_at).

Both columns are nullable TEXT columns storing ISO 8601 strings.

table.timestamps();

Implementation

void timestamps() {
  string('created_at').nullable();
  string('updated_at').nullable();
}