aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2012-06-05 05:24:55 +0900
committerAkira Matsuda <ronnie@dio.jp>2012-06-06 19:33:38 +0900
commit099639670a9a02ea2847117a541c4f48585951ad (patch)
tree139b95fa4e4e24154bae6f7858dc88dcbffac0d8 /activerecord/lib
parentedee2c7b3bec824aa653b09d63aff06ab5542e06 (diff)
downloadrails-099639670a9a02ea2847117a541c4f48585951ad.tar.gz
rails-099639670a9a02ea2847117a541c4f48585951ad.tar.bz2
rails-099639670a9a02ea2847117a541c4f48585951ad.zip
Symbol responds_to :upcase & :downcase in Ruby >= 1.9
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb2
1 files changed, 1 insertions, 1 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 5758ac4569..f5794a4e54 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -548,7 +548,7 @@ module ActiveRecord
if options.is_a?(Hash) && order = options[:order]
case order
when Hash
- column_names.each {|name| option_strings[name] += " #{order[name].to_s.upcase}" if order.has_key?(name)}
+ column_names.each {|name| option_strings[name] += " #{order[name].upcase}" if order.has_key?(name)}
when String
column_names.each {|name| option_strings[name] += " #{order.upcase}"}
end