diff options
author | Akira Matsuda <ronnie@dio.jp> | 2012-06-05 05:24:55 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2012-06-06 19:33:38 +0900 |
commit | 099639670a9a02ea2847117a541c4f48585951ad (patch) | |
tree | 139b95fa4e4e24154bae6f7858dc88dcbffac0d8 /activerecord/lib | |
parent | edee2c7b3bec824aa653b09d63aff06ab5542e06 (diff) | |
download | rails-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.rb | 2 |
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 |