method
add_timestamps
v2.2.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::SchemaStatements
add_timestamps(table_name)public
Adds timestamps (created_at and updated_at) columns to the named table.
Examples
add_timestamps(:suppliers)