method
timestamps
v3.0.0 -
Show 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