instance method
remove_timestamps
Ruby on Rails 7.1.6
Since v2.2.3Signature
remove_timestamps(table_name, **options)
Removes the timestamp columns (created_at and updated_at) from the table definition.
remove_timestamps(:suppliers)
Parameters
-
table_namereq -
optionskeyrest
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1432
def remove_timestamps(table_name, **options)
remove_columns table_name, :updated_at, :created_at
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb line 1432
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::SchemaStatements