method
timestamps
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::Table
timestamps()public
Adds timestamps (created_at and updated_at) columns to the table. See SchemaStatements#add_timestamps
Example
t.timestamps
timestamps()Adds timestamps (created_at and updated_at) columns to the table. See SchemaStatements#add_timestamps
t.timestamps