method

columns_for_remove

Importance_0
v3.2.8 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
columns_for_remove(table_name, *column_names) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 593
        def columns_for_remove(table_name, *column_names)
          column_names = column_names.flatten

          raise ArgumentError.new("You must specify at least one column name. Example: remove_column(:people, :first_name)") if column_names.blank?
          column_names.map {|column_name| quote_column_name(column_name) }
        end
Register or log in to add new notes.