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.
(:suppliers)
1174 1175 1176 1177 |
# File 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb', line 1174 def (table_name, = {}) remove_column table_name, :updated_at remove_column table_name, :created_at end |