method
timestamps
v7.1.3.4 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ColumnMethods::TableDefinition
timestamps(**options)public
Appends :datetime columns :created_at and :updated_at to the table. See {connection.add_timestamps}[rdoc-ref:SchemaStatements#add_timestamps]
t.timestamps null: false