method
timestamps
rails 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