method
add_timestamps
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::ConnectionAdapters::SchemaStatements
add_timestamps(table_name, **options)
public
Adds timestamps (created_at and updated_at) columns to table_name. Additional options (like :null) are forwarded to #add_column.
add_timestamps(:suppliers, null: true)