method
add_timestamps
Ruby on Rails latest stable (v6.1.7.7)
-
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)