aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-05-08 11:45:45 +0200
committerYves Senn <yves.senn@gmail.com>2015-05-08 11:45:45 +0200
commit0834d60d64a159765a2719eedbf1518334f86644 (patch)
treeff4c737d99b495ca12c7c25c0e2ba078dfaa8fe0
parentf1da919a05488e0647886a9325caa1f0f89d2cad (diff)
parentafd215da217f547ba0ae1deeeefd55c2f4fb8c0c (diff)
downloadrails-0834d60d64a159765a2719eedbf1518334f86644.tar.gz
rails-0834d60d64a159765a2719eedbf1518334f86644.tar.bz2
rails-0834d60d64a159765a2719eedbf1518334f86644.zip
Merge pull request #20068 from mcfiredrill/nodoc-postgresql-rename-column
:nodoc: rename_column in postgresql/schema_statements.rb [ci skip]
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
index 686671b007..5552044e7a 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
@@ -452,7 +452,7 @@ module ActiveRecord
end
# Renames a column in a table.
- def rename_column(table_name, column_name, new_column_name)
+ def rename_column(table_name, column_name, new_column_name) #:nodoc:
clear_cache!
execute "ALTER TABLE #{quote_table_name(table_name)} RENAME COLUMN #{quote_column_name(column_name)} TO #{quote_column_name(new_column_name)}"
rename_column_indexes(table_name, column_name, new_column_name)