instance method
columns_for_remove
Ruby on Rails 4.0.13
Since v3.1.12 Last seen in v4.0.13Signature
columns_for_remove(table_name, *column_names)
No documentation comment.
Parameters
-
table_namereq -
column_namesrest
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 844
def columns_for_remove(table_name, *column_names)
ActiveSupport::Deprecation.warn("columns_for_remove is deprecated and will be removed in the future")
raise ArgumentError.new("You must specify at least one column name. Example: remove_columns(:people, :first_name)") if column_names.blank?
column_names.map {|column_name| quote_column_name(column_name) }
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb line 844
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::SchemaStatements