diff options
author | Richard Schneeman <richard.schneeman+no-recruiters@gmail.com> | 2018-09-06 16:06:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-06 16:06:20 -0400 |
commit | 3e46cf75330bf103dd82eedf3c892de75290dda5 (patch) | |
tree | c2e1cb0ca4f84157e6a623819094f271c72c33fb /activerecord/lib | |
parent | 29f5f702f91fd1ddb51db87a10cfc5982f58d2fa (diff) | |
parent | b54e5706e76396cf65760b5b41a61bf0a836786e (diff) | |
download | rails-3e46cf75330bf103dd82eedf3c892de75290dda5.tar.gz rails-3e46cf75330bf103dd82eedf3c892de75290dda5.tar.bz2 rails-3e46cf75330bf103dd82eedf3c892de75290dda5.zip |
Merge pull request #33809 from fidalgo/improve-remove-column-documentation
[ci skip] Improve remove_column documentation
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 84ea7a0c33..4a6e915b66 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -602,6 +602,7 @@ module ActiveRecord # 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 |