instance method
remove_column
Ruby on Rails 6.0.6
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 389
def remove_column(name)
@columns_hash.delete name.to_s
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb line 389
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::TableDefinition