Method: ActiveRecord::ConnectionAdapters::SchemaStatements#remove_timestamps

Defined in:
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb

#remove_timestamps(table_name, **options) ⇒ Object

Removes the timestamp columns (created_at and updated_at) from the table definition.

remove_timestamps(:suppliers)


1468
1469
1470
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb', line 1468

def remove_timestamps(table_name, **options)
  remove_columns table_name, :updated_at, :created_at
end