method
add_timestamps

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)