method

timestamps

rails latest stable - Class: ActiveRecord::ConnectionAdapters::Table

Method not available on this version

This method is only available on newer versions. The first available version (v2.1.0) is shown here.

timestamps()
public

Adds timestamps (created_at and updated_at) columns to the table. See SchemaStatements#add_timestamps

Example
 t.timestamps