Skip to content

Commit

Permalink
Removed deprecated method columns_for_remove
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh committed Jul 3, 2013
1 parent 9adbbe9 commit 0e8027f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions activerecord/CHANGELOG.md
@@ -1,3 +1,7 @@
* Removed deprecated `columns_for_remove` from `SchemaStatements`.

*Neeraj Singh*

* Remove deprecated `SchemaStatements#distinct`.

*Francesco Rodriguez*
Expand Down
Expand Up @@ -803,12 +803,6 @@ def index_name_for_remove(table_name, options = {})
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)
Expand Down

0 comments on commit 0e8027f

Please sign in to comment.