method
timestamps
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::Table
timestamps(options = {})public
Adds timestamps (created_at and updated_at) columns to the table.
t.timestamps(null: false)
See {connection.add_timestamps}[rdoc-ref:SchemaStatements#add_timestamps]