diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-07-03 02:32:47 -0700 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-07-03 02:32:47 -0700 |
commit | f775a8456a85a6ff838ed37de1aa7bcde9fc9c32 (patch) | |
tree | f92a04c7aeeff58a7b843b4be98f5687a009205b | |
parent | 9adbbe93a9ac84c184fd586041adbd4f5defde22 (diff) | |
parent | 0e8027fb3444fc31dce2b63bdac243e109ddcbda (diff) | |
download | rails-f775a8456a85a6ff838ed37de1aa7bcde9fc9c32.tar.gz rails-f775a8456a85a6ff838ed37de1aa7bcde9fc9c32.tar.bz2 rails-f775a8456a85a6ff838ed37de1aa7bcde9fc9c32.zip |
Merge pull request #11263 from neerajdotname/columns_for_remove
Removed deprecated method `columns_for_remove`
-rw-r--r-- | activerecord/CHANGELOG.md | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index cf65f6dcd3..162c42e2c9 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,7 @@ +* Removed deprecated `columns_for_remove` from `SchemaStatements`. + + *Neeraj Singh* + * Remove deprecated `SchemaStatements#distinct`. *Francesco Rodriguez* 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 d93b79d57f..4b425494d0 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -803,12 +803,6 @@ module ActiveRecord index_name end - 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 - def rename_table_indexes(table_name, new_name) indexes(new_name).each do |index| generated_index_name = index_name(table_name, column: index.columns) |