Merge pull request #33809 from fidalgo/improve-remove-column-documentation

[ci skip] Improve remove_column documentation
This commit is contained in:
Richard Schneeman 2018-09-06 16:06:20 -04:00 committed by GitHub
commit 3e46cf7533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -602,6 +602,7 @@ def remove_columns(table_name, *column_names)
# The +type+ and +options+ parameters will be ignored if present. It can be helpful
# to provide these in a migration's +change+ method so it can be reverted.
# In that case, +type+ and +options+ will be used by #add_column.
# Indexes on the column are automatically removed.
def remove_column(table_name, column_name, type = nil, options = {})
execute "ALTER TABLE #{quote_table_name(table_name)} #{remove_column_for_alter(table_name, column_name, type, options)}"
end