instance method
remove_column
Ruby on Rails 7.2.3
Since v4.0.13Signature
remove_column(name)
remove the column name from the table.
remove_column(:account_id)
Parameters
-
namereq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 510
def remove_column(name)
@columns_hash.delete name.to_s
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb line 510
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::TableDefinition