mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Avoid warning: shadowing outer local variable
This commit is contained in:
@@ -714,8 +714,8 @@ module ActiveRecord
|
||||
# Returns the list of all column definitions for a table.
|
||||
def columns(table_name, name = nil)
|
||||
# Limit, precision, and scale are all handled by the superclass.
|
||||
column_definitions(table_name).collect do |name, type, default, notnull|
|
||||
PostgreSQLColumn.new(name, default, type, notnull == 'f')
|
||||
column_definitions(table_name).collect do |column_name, type, default, notnull|
|
||||
PostgreSQLColumn.new(column_name, default, type, notnull == 'f')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user