method

columns_for_remove

rails latest stable - Class: ActiveRecord::ConnectionAdapters::SchemaStatements

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.

columns_for_remove(table_name, *column_names)
protected

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 840
        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